diff options
Diffstat (limited to 'app/controllers/organizations/application_controller.rb')
-rw-r--r-- | app/controllers/organizations/application_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/organizations/application_controller.rb b/app/controllers/organizations/application_controller.rb index 8a99b6804ae..9cc33ec0447 100644 --- a/app/controllers/organizations/application_controller.rb +++ b/app/controllers/organizations/application_controller.rb @@ -28,6 +28,10 @@ module Organizations access_denied! unless can?(current_user, :read_organization, organization) end + def authorize_read_organization_user! + access_denied! unless can?(current_user, :read_organization_user, organization) + end + def authorize_admin_organization! access_denied! unless can?(current_user, :admin_organization, organization) end |