/* fetches necessary and builds the UI */
function uEditBuild() {
- //fetchHighestPermOrgs( SESSION, USER.id(), myPerms );
+ fetchHighestPermOrgs( SESSION, USER.id(), myPerms );
uEditBuildLibSelector();
patron = fetchFleshedUser(cgi.param('usr'));
unHideMe($('ue_mark_card_lost'));
unHideMe($('ue_reset_pw'));
}
+
+ if(PERMS['BAR_PATRON'] == -1)
+ $('ue_barred').disabled = true;
}
const GUARDIAN_NOTE = 'SYSTEM: Parent/Guardian';
/* if they don't have these perms, they shouldn't be here */
-var myPerms = [ 'CREATE_USER', 'UPDATE_USER', 'CREATE_PATRON_STAT_CAT_ENTRY_MAP' ];
+var myPerms = [
+ /*
+ 'CREATE_USER',
+ 'UPDATE_USER',
+ 'CREATE_PATRON_STAT_CAT_ENTRY_MAP',
+ */
+ 'BAR_PATRON',
+ ];
var dataFields;
const numRegex = /^\d+$/;