Skip to content

Commit

Permalink
Define default ability for any authenticated user
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernhardt committed Aug 8, 2024
1 parent 671450e commit 9d437d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ def initialize(user)
return unless user.present?
# Rules will go here.

can :index, StatDashboard

return unless user.admin?
can :manage, :all
end
Expand Down

0 comments on commit 9d437d3

Please sign in to comment.