Changeset 434 for binary-improvements2/WebServer/src/UrlHandlers
- Timestamp:
- May 17, 2023, 11:05:59 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/AbsHandler.cs
r426 r434 3 3 namespace Webserver.UrlHandlers { 4 4 public abstract class AbsHandler { 5 p rotected readonly string moduleName;5 public readonly string ModuleName; 6 6 protected string urlBasePath; 7 7 protected Web parent; 8 8 9 public string ModuleName => moduleName;10 9 public string UrlBasePath => urlBasePath; 11 10 12 11 protected AbsHandler (string _moduleName, int _defaultPermissionLevel = 0) { 13 moduleName = _moduleName;12 ModuleName = _moduleName; 14 13 AdminWebModules.Instance.AddKnownModule (new AdminWebModules.WebModule(_moduleName, _defaultPermissionLevel, true)); 15 14 } … … 18 17 19 18 public virtual bool IsAuthorizedForHandler (WebConnection _user, int _permissionLevel) { 20 return moduleName == null || AdminWebModules.Instance.ModuleAllowedWithLevel (moduleName, _permissionLevel);19 return ModuleName == null || AdminWebModules.Instance.ModuleAllowedWithLevel (ModuleName, _permissionLevel); 21 20 } 22 21
Note:
See TracChangeset
for help on using the changeset viewer.