show users tab in site admin
it's now useful to be able to create a user with a specific non-email pseudonym to auth against an external IdP test plan: * go to /accounts/site_admin, and see the tab Change-Id: I06475656a6244659a84193cdb277f7c0ebe14d0e Reviewed-on: https://gerrit.instructure.com/9957 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
This commit is contained in:
parent
f158c5e9fd
commit
5ea5f36fb4
|
@ -785,6 +785,7 @@ class Account < ActiveRecord::Base
|
|||
manage_settings = user && self.grants_right?(user, nil, :manage_account_settings)
|
||||
if site_admin?
|
||||
tabs = []
|
||||
tabs << { :id => TAB_USERS, :label => t('#account.tab_users', "Users"), :css_class => 'users', :href => :account_users_path } if user && self.grants_right?(user, nil, :read_roster)
|
||||
tabs << { :id => TAB_PERMISSIONS, :label => t('#account.tab_permissions', "Permissions"), :css_class => 'permissions', :href => :account_permissions_path } if user && self.grants_right?(user, nil, :manage_role_overrides)
|
||||
tabs << { :id => TAB_AUTHENTICATION, :label => t('#account.tab_authentication', "Authentication"), :css_class => 'authentication', :href => :account_account_authorization_configs_path } if manage_settings
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue