Repairing files to bring in line with current release.

This commit is contained in:
tarrien committed 2026-11-06 06:03:49 -05:00
1 parent 8eabb7ea31
commit 89f226d50c
27 files changed
+84 -13319

No files matched your search

-6
View File
@@ -8,7 +8,6 @@ module Admin
layout 'admin'
before_action :require_moderator_or_admin_permissions
before_action :set_referrer_policy_header
after_action :verify_authorized
@@ -22,10 +21,5 @@ module Admin
def set_user
@user = Account.find(params[:account_id]).user || raise(ActiveRecord::RecordNotFound)
end
def require_moderator_or_admin_permissions
# not using #authorize here, so #verify_authorized still makes sure more fine-grained rules are enforced down the line
forbidden unless Admin::BasePolicy.new(current_account, :base).access?
end
end
end