Commit 813c62c7 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Check if user has access to feature the on namespace instead instance level

parent 0eef8876
......@@ -23,7 +23,7 @@ module EE
cannot! :read_project
end
unless License.current&.feature_available?(:related_issues)
unless project.feature_available?(:related_issues)
cannot! :read_issue_link
cannot! :admin_issue_link
end
......
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