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
ed38eb55
Commit
ed38eb55
authored
Aug 02, 2017
by
Felipe Artur
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix permissions
parent
23d9d9bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
app/helpers/boards_helper.rb
app/helpers/boards_helper.rb
+1
-5
app/policies/ee/group_policy.rb
app/policies/ee/group_policy.rb
+3
-0
No files found.
app/helpers/boards_helper.rb
View file @
ed38eb55
...
...
@@ -63,11 +63,7 @@ module BoardsHelper
end
def
can_admin_issue
if
@project
can?
(
current_user
,
:admin_issue
,
@project
)
elsif
@group
can?
(
current_user
,
:admin_board
,
@group
)
end
can?
(
current_user
,
:admin_issue
,
current_board_parent
)
end
def
board_list_data
...
...
app/policies/ee/group_policy.rb
View file @
ed38eb55
...
...
@@ -9,6 +9,9 @@ module EE
rule
{
reporter
}.
policy
do
enable
:admin_list
enable
:admin_board
# Only used for group issue boards
enable
:admin_issue
end
rule
{
public_group
}.
enable
:read_board
...
...
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