Class: UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- UsersController
- Defined in:
- app/controllers/users_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /requests.
Methods inherited from ApplicationController
#add_breadcrumb, #after_sign_in_path_for, #breadcrumbs, #new_session_path, #require_admin_user
Instance Method Details
#index ⇒ Object
GET /requests
5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/users_controller.rb', line 5 def index if current_user.superuser || current_user.sysadmin || current_user.trainer @users = User.order("family_name ASC NULLS LAST") ("Current Users") else = "You do not have access to this page." flash[:notice] = redirect_to dashboard_path end end |