mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
17 lines
202 B
Ruby
17 lines
202 B
Ruby
class PostStatusPolicy < ApplicationPolicy
|
|
def create?
|
|
user.admin?
|
|
end
|
|
|
|
def update?
|
|
user.admin?
|
|
end
|
|
|
|
def destroy?
|
|
user.admin?
|
|
end
|
|
|
|
def update_order?
|
|
user.admin?
|
|
end
|
|
end |