diff options
author | Shinya Maeda <shinya@gitlab.com> | 2019-03-22 15:14:39 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2019-03-26 16:59:10 +0300 |
commit | 535761c9b0411b35dbb75d26455d5c7eb97e93d8 (patch) | |
tree | 9a01a32692dab486e9f4636498162bda94629bdb /app | |
parent | 9d826aed9ff336a55f770c328dcf042e67823b48 (diff) |
Disallow guest users from accessing Releases
As they do not have a permission to read git tag
Diffstat (limited to 'app')
-rw-r--r-- | app/policies/project_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 85143c5d339..504c1ec5c3a 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -178,7 +178,6 @@ class ProjectPolicy < BasePolicy enable :read_cycle_analytics enable :award_emoji enable :read_pages_content - enable :read_release end # These abilities are not allowed to admins that are not members of the project, @@ -204,6 +203,7 @@ class ProjectPolicy < BasePolicy enable :read_deployment enable :read_merge_request enable :read_sentry_issue + enable :read_release end # We define `:public_user_access` separately because there are cases in gitlab-ee |