diff options
author | Alexandru Croitor <acroitor@gitlab.com> | 2019-06-17 15:58:48 +0300 |
---|---|---|
committer | Alexandru Croitor <acroitor@gitlab.com> | 2019-06-26 12:28:00 +0300 |
commit | 0f6c42c5ce165dadf1976ae15a043b87ca533618 (patch) | |
tree | 9220ed5a8eb628ca3c5170a0d5f9400870538797 /app/policies | |
parent | 2b9ddc2f99bc0a49967c9ccc5b79ccc53e7559b4 (diff) |
Move Multiple Issue Boards for Projects to Core
Refactor code to allow multiple issue boards management for projects
in CE
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 08bfe5d14ee..3c9ffbb2065 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -196,6 +196,7 @@ class ProjectPolicy < BasePolicy rule { guest & can?(:read_container_image) }.enable :build_read_container_image rule { can?(:reporter_access) }.policy do + enable :admin_board enable :download_code enable :read_statistics enable :download_wiki_code @@ -240,6 +241,7 @@ class ProjectPolicy < BasePolicy rule { can?(:developer_access) & can?(:create_issue) }.enable :import_issues rule { can?(:developer_access) }.policy do + enable :admin_board enable :admin_merge_request enable :admin_milestone enable :update_merge_request @@ -266,6 +268,7 @@ class ProjectPolicy < BasePolicy end rule { can?(:maintainer_access) }.policy do + enable :admin_board enable :push_to_delete_protected_branch enable :update_project_snippet enable :update_environment |