[open-ils-commits] r19224 - branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 19 17:28:07 EST 2011
Author: erickson
Date: 2011-01-19 17:28:02 -0500 (Wed, 19 Jan 2011)
New Revision: 19224
Modified:
branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
if this user does not have permission to edit an existing user, disable the save and clone buttons
Modified: branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js 2011-01-19 22:28:01 UTC (rev 19223)
+++ branches/rel_2_0/Open-ILS/web/js/ui/default/actor/user/register.js 2011-01-19 22:28:02 UTC (rev 19224)
@@ -147,6 +147,13 @@
} else {
input.widget.attr('disabled', true).attr('readOnly', true);
}
+
+ if(!patron.isnew() && !checkGrpAppPerm(patron.profile()) && patron.id() != openils.User.user.id()) {
+ // we are not allowed to edit this user, so disable the save option
+ saveButton.attr('disabled', true);
+ saveCloneButton.attr('disabled', true);
+ }
+
}
var permGroups;
More information about the open-ils-commits
mailing list