app/controllers/users_controller.rb in tkh_authentication-0.9.13 vs app/controllers/users_controller.rb in tkh_authentication-0.9.14
- old
+ new
@@ -45,17 +45,17 @@
def make_admin
user = User.find(params[:id])
user.admin = true
user.save
- redirect_to users_path, notice: t('authentication.admin_enabled_confirmation')
+ redirect_to members_path, notice: t('authentication.admin_enabled_confirmation')
end
def remove_admin
user = User.find(params[:id])
user.admin = false
user.save
- redirect_to users_path, notice: t('authentication.admin_disabled_confirmation')
+ redirect_to members_path, notice: t('authentication.admin_disabled_confirmation')
end
private
def set_target_page