Added one more endpoint to attach tempfile and get logo (#6407)
This commit is contained in:
@@ -23,6 +23,10 @@ class ArticlePolicy < ApplicationPolicy
|
||||
@account_user.administrator? || portal_member?
|
||||
end
|
||||
|
||||
def attach_file?
|
||||
@account_user.administrator? || portal_member?
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def portal_member?
|
||||
|
||||
@@ -27,6 +27,10 @@ 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