fix lock/unlock user from link in the users grid

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1215290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-12-16 21:29:00 +00:00
parent d6a6f7b316
commit 8cf86eda66
1 changed files with 3 additions and 0 deletions

View File

@ -82,18 +82,21 @@ $(function() {
this.lock = function(user){ this.lock = function(user){
clearUserMessages(); clearUserMessages();
user.locked(true); user.locked(true);
window.redbackModel.createUser=false;
user.save(); user.save();
} }
this.unlock = function(user){ this.unlock = function(user){
clearUserMessages(); clearUserMessages();
user.locked(false); user.locked(false);
window.redbackModel.createUser=false;
user.save(); user.save();
} }
this.passwordChangeRequire = function(user,forceChangedPassword){ this.passwordChangeRequire = function(user,forceChangedPassword){
clearUserMessages(); clearUserMessages();
user.passwordChangeRequired(forceChangedPassword); user.passwordChangeRequired(forceChangedPassword);
window.redbackModel.createUser=false;
user.save(); user.save();
} }