6 lines
122 B
Ruby
6 lines
122 B
Ruby
|
class AdminDashboardPolicy < Struct.new(:user, :admin_dashbard)
|
||
|
def index?
|
||
|
user.admin? || user.moderator?
|
||
|
end
|
||
|
end
|