Permalink
Browse files

Use the 'exclusive' scope for showing users

In the admin interface use the exclusive scope to ensure privileged users no longer show in the index of users (part of #12589). This is consistent with the rails3 and rails4 branches.
  • Loading branch information...
1 parent dee9154 commit c31dc8bdaa21405ac098aec940655de07fc82e11 @vanderhoorn vanderhoorn committed Jul 26, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/admin/users_controller.rb
@@ -17,7 +17,7 @@ class Admin::UsersController < Admin::AdminController
def index
@active_page ||= :users
- user_model = @active_page == :privileged_users ? PrivilegedUser : User
+ user_model = @active_page == :privileged_users ? PrivilegedUser : User.exclusive
# Sort the polymorphic node relationship separately if necessary.
if !@sort_by_newsletter_archives

0 comments on commit c31dc8b

Please sign in to comment.