- Timestamp:
- Jan 27, 2023, 7:28:00 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/UrlHandlers/ApiHandler.cs
r399 r402 45 45 private void addApi (AbsWebAPI _api) { 46 46 apis.Add (_api.Name, _api); 47 WebPermissions.Instance.AddKnownModule ( "webapi." + _api.Name, _api.DefaultPermissionLevel ());47 WebPermissions.Instance.AddKnownModule ($"webapi.{_api.Name}", _api.DefaultPermissionLevel ()); 48 48 } 49 49 … … 92 92 93 93 private bool IsAuthorizedForApi (string _apiName, int _permissionLevel) { 94 return WebPermissions.Instance.ModuleAllowedWithLevel ( "webapi." + _apiName, _permissionLevel);94 return WebPermissions.Instance.ModuleAllowedWithLevel ($"webapi.{_apiName}", _permissionLevel); 95 95 } 96 96 }
Note:
See TracChangeset
for help on using the changeset viewer.