Ignore:
Timestamp:
Feb 16, 2023, 3:50:53 PM (21 months ago)
Author:
alloc
Message:

Latest state including reworking to the permissions system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/WebServer/src/UrlHandlers/AbsHandler.cs

    r391 r404  
     1using Webserver.Permissions;
     2
    13namespace Webserver.UrlHandlers {
    24        public abstract class AbsHandler {
     
    1012                protected AbsHandler (string _moduleName, int _defaultPermissionLevel = 0) {
    1113                        moduleName = _moduleName;
    12                         WebPermissions.Instance.AddKnownModule (_moduleName, _defaultPermissionLevel);
     14                        AdminWebModules.Instance.AddKnownModule (_moduleName, _defaultPermissionLevel);
    1315                }
    1416
     
    1618
    1719                public virtual bool IsAuthorizedForHandler (WebConnection _user, int _permissionLevel) {
    18                         return moduleName == null || WebPermissions.Instance.ModuleAllowedWithLevel (moduleName, _permissionLevel);
     20                        return moduleName == null || AdminWebModules.Instance.ModuleAllowedWithLevel (moduleName, _permissionLevel);
    1921                }
    2022
Note: See TracChangeset for help on using the changeset viewer.