forked from External/greenlight
Fixed 500 caused by editting a user when not allowed to (#2108)
This commit is contained in:
@ -65,7 +65,7 @@ describe UsersController, type: :controller do
|
||||
|
||||
get :edit, params: { user_uid: user2.uid }
|
||||
|
||||
expect(response).to redirect_to(user.main_room)
|
||||
expect(response).to redirect_to(root_path)
|
||||
end
|
||||
|
||||
it "allows admins to edit other users" do
|
||||
|
Reference in New Issue
Block a user