We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9397da7 commit c29f579Copy full SHA for c29f579
app/controllers/users_controller.rb
@@ -9,6 +9,7 @@ class UsersController < ApplicationController
9
after_action :remove_x_frame_options_header_when_bare_layout, only: %i[new create show]
10
11
def index
12
+ raise CanCan::AccessDenied if current_user.guest?
13
respond_access_denied unless current_user.administrator?
14
@users = User.search(params[:search])
15
end
0 commit comments