Commit ed38eb55 authored by Felipe Artur's avatar Felipe Artur

Fix permissions

parent 23d9d9bb
......@@ -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
......
......@@ -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
......
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