Ignore:
Timestamp:
May 24, 2023, 4:53:49 PM (18 months ago)
Author:
alloc
Message:

*Added: Allow specifying a single level 0 API token on the command line

File:
1 edited

Legend:

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

    r434 r440  
    1616                public abstract void HandleRequest (RequestContext _context);
    1717
    18                 public virtual bool IsAuthorizedForHandler (WebConnection _user, int _permissionLevel) {
    19                         return ModuleName == null || AdminWebModules.Instance.ModuleAllowedWithLevel (ModuleName, _permissionLevel);
     18                public virtual bool IsAuthorizedForHandler (RequestContext _context) {
     19                        return ModuleName == null || AdminWebModules.Instance.ModuleAllowedWithLevel (ModuleName, _context.PermissionLevel);
    2020                }
    2121
Note: See TracChangeset for help on using the changeset viewer.