Skip to content

Commit

Permalink
Fix bugs for web push block
Browse files Browse the repository at this point in the history
  • Loading branch information
highemerly committed Jan 26, 2024
1 parent 86ecd90 commit fa84f13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/policies/application_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def initialize(current_account, record)
@record = record
end

delegate :admin?, :moderator?, :staff?, to: :current_user, allow_nil: true

private

def current_user
Expand Down

0 comments on commit fa84f13

Please sign in to comment.