ADD admin role to org api

This commit is contained in:
jasder 2021-04-26 16:45:58 +08:00
parent 95a355b87c
commit 1a22491e36
1 changed files with 1 additions and 0 deletions

View File

@ -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