You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: chef-server-webui/app/controllers/users.rb
+22-23Lines changed: 22 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -52,8 +52,8 @@ def show
52
52
raiseForbidden,"The current user is not an Administrator, you can only Show and Edit the user itself. To control other users, login as an Administrator."unlessparams[:user_id] == session[:user]unlesssession[:level] == :admin
53
53
begin
54
54
@user=Chef::WebUIUser.load(params[:user_id])
55
-
rescueChef::Exceptions::CouchDBNotFound=>e
56
-
raiseNotFound,"Cannot found user #{params[:user_id]}"
55
+
rescueNet::HTTPServerException=>e
56
+
raiseNotFound,"Cannot find user #{params[:user_id]}"
57
57
end
58
58
render
59
59
rescue
@@ -66,12 +66,12 @@ def update
66
66
begin
67
67
begin
68
68
@user=Chef::WebUIUser.load(params[:user_id])
69
-
rescueChef::Exceptions::CouchDBNotFound=>e
70
-
raiseNotFound,"Cannot found user #{params[:user_id]}"
69
+
rescueNet::HTTPServerException=>e
70
+
raiseNotFound,"Cannot find user #{params[:user_id]}"
0 commit comments