summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/packages_access.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/packages_access.rb')
-rw-r--r--app/controllers/concerns/packages_access.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/packages_access.rb b/app/controllers/concerns/packages_access.rb
index 6df2e064bb2..a7d16a5bc88 100644
--- a/app/controllers/concerns/packages_access.rb
+++ b/app/controllers/concerns/packages_access.rb
@@ -15,6 +15,6 @@ module PackagesAccess
end
def verify_read_package!
- authorize_read_package!(project)
+ access_denied! unless can?(current_user, :read_package, project&.packages_policy_subject)
end
end