diff --git a/app/controllers/admin/members_controller.rb b/app/controllers/admin/members_controller.rb index d470da9..c02065b 100644 --- a/app/controllers/admin/members_controller.rb +++ b/app/controllers/admin/members_controller.rb @@ -219,7 +219,7 @@ class Admin::MembersController < OrbitMemberController def edit_passwd @user = @member.user - if current_user.id == @user.id + unless current_user.id == @user.id or current_user.is_admin? redirect_to :action => :index end end diff --git a/app/views/layouts/_right_menu.html.erb b/app/views/layouts/_right_menu.html.erb index b9325cc..ea51725 100644 --- a/app/views/layouts/_right_menu.html.erb +++ b/app/views/layouts/_right_menu.html.erb @@ -35,11 +35,9 @@ <% end %>
<% else %>