1
0
Fork 0
dokkan-data-rails/app/policies/link_policy.rb

17 lines
238 B
Ruby

class LinkPolicy < ApplicationPolicy
def index?
true
end
def create?
user.moderator? || user.admin?
end
def update?
user.moderator? || user.admin?
end
def destroy?
user.moderator? || user.admin?
end
end