wrong exception name
parent
8ee2a5ebf4
commit
9d0f796b75
|
@ -39,7 +39,7 @@ class Application < Merb::Controller
|
||||||
@user = if administrator?
|
@user = if administrator?
|
||||||
User.find_by_user_name params[:id]
|
User.find_by_user_name params[:id]
|
||||||
elsif logged_in? and params[:id] != current_user.user_name
|
elsif logged_in? and params[:id] != current_user.user_name
|
||||||
raise NotAllowed
|
raise NotAcceptable
|
||||||
else
|
else
|
||||||
current_user
|
current_user
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue