Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a9b40f18
Commit
a9b40f18
authored
Jan 12, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move admin_board policies to FOSS
parent
8fefb07a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
app/policies/group_policy.rb
app/policies/group_policy.rb
+1
-0
ee/app/policies/ee/group_policy.rb
ee/app/policies/ee/group_policy.rb
+0
-1
spec/support/shared_contexts/policies/group_policy_shared_context.rb
...t/shared_contexts/policies/group_policy_shared_context.rb
+1
-0
No files found.
app/policies/group_policy.rb
View file @
a9b40f18
...
...
@@ -122,6 +122,7 @@ class GroupPolicy < BasePolicy
rule
{
reporter
}.
policy
do
enable
:reporter_access
enable
:read_container_image
enable
:admin_board
enable
:admin_label
enable
:admin_list
enable
:admin_issue
...
...
ee/app/policies/ee/group_policy.rb
View file @
a9b40f18
...
...
@@ -129,7 +129,6 @@ module EE
rule
{
reporter
}.
policy
do
enable
:admin_list
enable
:admin_board
enable
:view_productivity_analytics
enable
:view_type_of_work_charts
enable
:read_group_timelogs
...
...
spec/support/shared_contexts/policies/group_policy_shared_context.rb
View file @
a9b40f18
...
...
@@ -23,6 +23,7 @@ RSpec.shared_context 'GroupPolicy context' do
let
(
:reporter_permissions
)
do
%i[
admin_label
admin_board
read_container_image
read_metrics_dashboard_annotation
read_prometheus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment