a7c947aeae
- endpoints to clone and update automation rules fixes: #3740
25 lines
371 B
Ruby
25 lines
371 B
Ruby
class AutomationRulePolicy < ApplicationPolicy
|
|
def index?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def create?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def show?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def update?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def clone?
|
|
@account_user.administrator?
|
|
end
|
|
|
|
def destroy?
|
|
@account_user.administrator?
|
|
end
|
|
end
|