tweaks to new can_upload_free flag #2469

This commit is contained in:
r888888888
2015-10-15 16:23:18 -07:00
parent 6480864718
commit 5a853bcedb
6 changed files with 38 additions and 6 deletions

View File

@@ -9,7 +9,11 @@ module Admin
def update
@user = User.find(params[:id])
@user.promote_to!(params[:user][:level])
@user.promote_to!(
params[:user][:level],
:can_approve_posts => params[:user][:can_approve_posts],
:can_upload_free => params[:user][:can_upload_free]
)
redirect_to edit_admin_user_path(@user), :notice => "User updated"
end
end