Changeset 426 for binary-improvements2/MapRendering/src/Api
- Timestamp:
- Apr 24, 2023, 2:40:34 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/MapRendering/src/Api/Map.cs
r425 r426 3 3 using Utf8Json; 4 4 using Webserver; 5 using Webserver.Permissions; 5 6 using Webserver.WebAPI; 6 7 … … 30 31 } 31 32 32 public override int DefaultMethodPermissionLevel (ERequestMethod _method) { 33 return _method switch { 34 ERequestMethod.GET => 2000, 35 _ => base.DefaultMethodPermissionLevel (_method) 36 }; 37 } 33 public override int[] DefaultMethodPermissionLevels () => new[] { 34 AdminWebModules.MethodLevelNotSupported, 35 AdminWebModules.PermissionLevelGuest, 36 AdminWebModules.MethodLevelInheritGlobal, 37 AdminWebModules.MethodLevelInheritGlobal, 38 AdminWebModules.MethodLevelInheritGlobal 39 }; 38 40 } 39 41 }
Note:
See TracChangeset
for help on using the changeset viewer.