Changeset 339 for binary-improvements


Ignore:
Timestamp:
Nov 21, 2018, 4:35:46 PM (7 months ago)
Author:
alloc
Message:

Fixed: Permissions not properly applying anymore due to case sensitivity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/webserver/js/permissions.js

    r283 r339  
    5252function HasPermission (modulename) {
    5353        for (var i = 0; i < userdata.permissions.length; i++) {
    54                 if (userdata.permissions [i].module == modulename) {
     54                if (userdata.permissions [i].module.toUpperCase() == modulename.toUpperCase()) {
    5555                        return userdata.permissions [i].allowed;
    5656                }
Note: See TracChangeset for help on using the changeset viewer.