17 lines
183 B
Ruby
17 lines
183 B
Ruby
class RarityPolicy < ApplicationPolicy
|
|
def index?
|
|
true
|
|
end
|
|
|
|
def create?
|
|
user.admin?
|
|
end
|
|
|
|
def update?
|
|
user.admin?
|
|
end
|
|
|
|
def destroy?
|
|
user.admin?
|
|
end
|
|
end
|