mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
5 lines
105 B
Ruby
5 lines
105 B
Ruby
class ApiKeyPolicy < ApplicationPolicy
|
|
def create?
|
|
user.moderator? && user == record.user
|
|
end
|
|
end |