Commit d1d56f49 authored by Jarka Kadlecova's avatar Jarka Kadlecova

Fix permissions check for destroy epic-issue link

parent e8fab2de
......@@ -13,7 +13,7 @@ module EpicIssues
end
def can_destroy_issue_link?(issue)
Ability.allowed?(current_user, :admin_issue_link, issue) && Ability.allowed?(current_user, :admin_epic, issuable)
Ability.allowed?(current_user, :admin_epic_issue, issue) && Ability.allowed?(current_user, :admin_epic, issuable)
end
def reference(issue)
......
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