Ignore:
Timestamp:
Nov 16, 2018, 10:38:46 PM (6 years ago)
Author:
alloc
Message:

*Latest optimizations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Web/Handlers/UserStatusHandler.cs

    r325 r332  
    1919                                JSONObject permObj = new JSONObject ();
    2020                                permObj.Add ("module", new JSONString (perm.module));
    21                                 permObj.Add ("allowed",
    22                                         new JSONBoolean (WebPermissions.Instance.ModuleAllowedWithLevel (perm.module, permissionLevel)));
     21                                permObj.Add ("allowed", new JSONBoolean (perm.permissionLevel >= permissionLevel));
    2322                                perms.Add (permObj);
    2423                        }
Note: See TracChangeset for help on using the changeset viewer.