We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91c8eb5 commit 9397da7Copy full SHA for 9397da7
1 file changed
app/controllers/users_controller.rb
@@ -53,7 +53,7 @@ def show
53
add_breadcrumb 'My account', user_path
54
55
if current_user.guest?
56
- respond_access_denied
+ raise CanCan::AccessDenied
57
else
58
@user = current_user
59
end
0 commit comments