feat: common attachment endpoint follow-up changes (#7826)
This commit is contained in:
@@ -23,10 +23,6 @@ class ArticlePolicy < ApplicationPolicy
|
||||
@account_user.administrator? || portal_member?
|
||||
end
|
||||
|
||||
def attach_file?
|
||||
@account_user.administrator? || portal_member?
|
||||
end
|
||||
|
||||
def reorder?
|
||||
@account_user.administrator? || portal_member?
|
||||
end
|
||||
|
||||
@@ -7,10 +7,6 @@ class AutomationRulePolicy < ApplicationPolicy
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def attach_file?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def show?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
@@ -23,10 +23,6 @@ class MacroPolicy < ApplicationPolicy
|
||||
@record.global? || author?
|
||||
end
|
||||
|
||||
def attach_file?
|
||||
true
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def author?
|
||||
|
||||
@@ -27,10 +27,6 @@ class PortalPolicy < ApplicationPolicy
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
def attach_file?
|
||||
@account_user.administrator?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def portal_member?
|
||||
|
||||
Reference in New Issue
Block a user