[open-ils-commits] r13355 - trunk/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 9 16:54:40 EDT 2009
Author: erickson
Date: 2009-06-09 16:54:36 -0400 (Tue, 09 Jun 2009)
New Revision: 13355
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
added support for default inet access level setting
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 20:40:33 UTC (rev 13354)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 20:54:36 UTC (rev 13355)
@@ -55,16 +55,17 @@
}
}
- uEditLoadUser(userId);
-
orgSettings = fieldmapper.aou.fetchOrgSettingBatch(staff.ws_ou(), [
'global.juvenile_age_threshold',
'patron.password.use_phone',
+ 'ui.patron.default_inet_access_level'
]);
for(k in orgSettings)
if(orgSettings[k])
orgSettings[k] = orgSettings[k].value;
+ uEditLoadUser(userId);
+
var list = pcrud.search('fdoc', {fm_class:fmClasses});
for(var i in list) {
var doc = list[i];
@@ -359,11 +360,10 @@
card.isnew(1);
patron.card(card);
patron.cards([card]);
- //patron.net_access_level(defaultNetLevel); XXX
+ patron.net_access_level(orgSettings['ui.patron.default_inet_access_level'] || 1);
patron.stat_cat_entries([]);
patron.survey_responses([]);
patron.addresses([]);
- //patron.home_ou(USER.ws_ou()); XXX
uEditMakeRandomPw(patron);
}
More information about the open-ils-commits
mailing list