Commit 88fd9dcc authored by Sean McGivern's avatar Sean McGivern

Merge branch '4044-remove-epic-issue' into 'master'

Fix permissions check for destroy epic-issue link

Closes #4044

See merge request gitlab-org/gitlab-ee!3403
parents d8964ebc d1d56f49
......@@ -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