1
0
Fork 0
dokkan-data-rails/app/policies/user_policy.rb

14 lines
151 B
Ruby
Raw Permalink Normal View History

2015-10-08 15:18:21 -04:00
class UserPolicy < ApplicationPolicy
def index?
user.admin?
end
def update?
user.admin?
end
def destroy?
user.admin?
end
end