diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-11 13:51:53 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-11 17:35:35 +0300 |
commit | 5dc047dc72c08a64aaf4f4a0c9fe0fba2742b905 (patch) | |
tree | a3d6e318a720ec233ed80dae2abc1065d6f5eea1 /app/policies | |
parent | e927833b941122f25252712bc68b37041b38ba2c (diff) |
Disable board policies when issues are disabled
Board list policies are also included
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/project_policy.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index cadbc5ae009..a8270442ea9 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -299,6 +299,8 @@ class ProjectPolicy < BasePolicy rule { issues_disabled }.policy do prevent(*create_read_update_admin_destroy(:issue)) + prevent(*create_read_update_admin_destroy(:board)) + prevent(*create_read_update_admin_destroy(:list)) end rule { merge_requests_disabled | repository_disabled }.policy do |