diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 12:08:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 12:08:11 +0300 |
commit | 5064bf8c5647d4c4430cbb4d097cf1592416de29 (patch) | |
tree | d051bf2abe2cc7061b3a7facb6669a56ccb9cf54 /app/policies/project_policy.rb | |
parent | 9c83aadd2604e7e6cb1f84683f951e6b12872618 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/project_policy.rb')
-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 aecefcc89ab..99aeca17699 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -271,6 +271,7 @@ class ProjectPolicy < BasePolicy enable :destroy_container_image enable :create_environment enable :update_environment + enable :destroy_environment enable :create_deployment enable :update_deployment enable :create_release @@ -316,6 +317,7 @@ class ProjectPolicy < BasePolicy enable :create_deploy_token enable :read_pod_logs enable :destroy_deploy_token + enable :read_prometheus_alerts end rule { (mirror_available & can?(:admin_project)) | admin }.enable :admin_remote_mirror |