diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-11 18:51:53 +0800 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-02-14 14:31:38 +0800 |
commit | 5608c3f2d8ffd8bad6502f652902ecf8c8d5d44a (patch) | |
tree | 1b128bf9cc4e118ca454b70a33de6133b7cf755b /app | |
parent | c5b5b18b3f1c5b683ceb4471e667d675de9200eb (diff) | |
download | gitlab-ce-5608c3f2d8ffd8bad6502f652902ecf8c8d5d44a.tar.gz |
Disable board policies when issues are disabled
Board list policies are also included
Diffstat (limited to 'app')
-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 |