10 lines
122 B
Ruby
10 lines
122 B
Ruby
|
|
class AccountLockPolicy < ApplicationPolicy
|
||
|
|
def create?
|
||
|
|
user.admin?
|
||
|
|
end
|
||
|
|
|
||
|
|
def destroy?
|
||
|
|
user.admin?
|
||
|
|
end
|
||
|
|
end
|