ADD admin role to org api
This commit is contained in:
parent
95a355b87c
commit
1a22491e36
|
@ -17,6 +17,7 @@ class Organizations::BaseController < ApplicationController
|
|||
end
|
||||
|
||||
def org_privacy_condition
|
||||
return false if current_user.admin?
|
||||
@organization.organization_extension.privacy? && @organization.organization_users.where(user_id: current_user.id).blank?
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue