Commit 9bb72332 authored by Tetiana Chupryna's avatar Tetiana Chupryna

Use permission for resource instead of page

parent a9bb4a80
......@@ -23,7 +23,7 @@ class DependencyEntity < Grape::Entity
private
def can_read_vulnerabilities?
can?(request.user, :read_project_security_dashboard, request.project)
can?(request.user, :read_vulnerability, request.project)
end
def can_read_licenses?
......
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