diff options
-rw-r--r-- | app/policies/project_policy.rb | 2 | ||||
-rw-r--r-- | spec/policies/project_policy_spec.rb | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/policies/project_policy.rb b/app/policies/project_policy.rb index 61878516544..5b726765ee9 100644 --- a/app/policies/project_policy.rb +++ b/app/policies/project_policy.rb @@ -169,6 +169,7 @@ class ProjectPolicy < BasePolicy enable :read_milestone enable :read_project_snippet enable :read_project_member + enable :read_project_group_member enable :read_note enable :create_project enable :create_issue @@ -178,7 +179,6 @@ class ProjectPolicy < BasePolicy enable :award_emoji enable :read_pages_content enable :read_release - enable :read_project_group_member end # These abilities are not allowed to admins that are not members of the project, diff --git a/spec/policies/project_policy_spec.rb b/spec/policies/project_policy_spec.rb index 68766afbe43..1236c0878ff 100644 --- a/spec/policies/project_policy_spec.rb +++ b/spec/policies/project_policy_spec.rb @@ -13,9 +13,9 @@ describe ProjectPolicy do %i[ read_project read_board read_list read_wiki read_issue read_project_for_iids read_issue_iid read_label - read_milestone read_project_snippet read_project_member read_note - create_project create_issue create_note upload_file create_merge_request_in - award_emoji read_release read_project_group_member + read_milestone read_project_snippet read_project_member read_project_group_member + read_note create_project create_issue create_note upload_file create_merge_request_in + award_emoji read_release ] end |