14 lines
151 B
Ruby
14 lines
151 B
Ruby
|
class UserPolicy < ApplicationPolicy
|
||
|
def index?
|
||
|
user.admin?
|
||
|
end
|
||
|
|
||
|
def update?
|
||
|
user.admin?
|
||
|
end
|
||
|
|
||
|
def destroy?
|
||
|
user.admin?
|
||
|
end
|
||
|
end
|