Commit ed38eb55 authored by Felipe Artur's avatar Felipe Artur

Fix permissions

parent 23d9d9bb
...@@ -63,11 +63,7 @@ module BoardsHelper ...@@ -63,11 +63,7 @@ module BoardsHelper
end end
def can_admin_issue def can_admin_issue
if @project can?(current_user, :admin_issue, current_board_parent)
can?(current_user, :admin_issue, @project)
elsif @group
can?(current_user, :admin_board, @group)
end
end end
def board_list_data def board_list_data
......
...@@ -9,6 +9,9 @@ module EE ...@@ -9,6 +9,9 @@ module EE
rule { reporter }.policy do rule { reporter }.policy do
enable :admin_list enable :admin_list
enable :admin_board enable :admin_board
# Only used for group issue boards
enable :admin_issue
end end
rule { public_group }.enable :read_board rule { public_group }.enable :read_board
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment