Changeset 2158


Ignore:
Timestamp:
Dec 6, 2013, 8:40:05 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #528: Restrict access to some registation wizards

Fixes an issue with an 'Administrator' not having access to any wizard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/net.sf.basedb.reggie/trunk/resources/index.jsp

    r2157 r2158  
    389389  {
    390390    var role = event.currentTarget.getAttribute('data-role');
    391     if (myPermissions[role] == 1)
     391    var isAdmin = myPermissions['Administrator'] == 1;
     392    if (isAdmin || myPermissions[role] == 1)
    392393    {
    393394      var link = event.currentTarget.getAttribute('data-link');
Note: See TracChangeset for help on using the changeset viewer.