8 lines
107 B
Ruby
8 lines
107 B
Ruby
class ApiTokenPolicy < ApplicationPolicy
|
|
|
|
def destroy?
|
|
user.admin? || record.user == user
|
|
end
|
|
|
|
end
|