Ignore:
Timestamp:
Apr 24, 2023, 2:40:34 PM (19 months ago)
Author:
alloc
Message:

*Updated web permissions system
*Fixed webpermissions command
*Moved API "webmods" to "mods", also lists non-webmod mods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/MarkersMod/src/Markers.cs

    r402 r426  
    44using Utf8Json;
    55using Webserver;
     6using Webserver.Permissions;
    67using Webserver.WebAPI;
    78
     
    135136                        SendEnvelopedResult (_context, ref writer, markers.Remove (id) ? HttpStatusCode.NoContent : HttpStatusCode.NotFound);
    136137                }
     138               
     139                public override int[] DefaultMethodPermissionLevels () => new[] {
     140                        AdminWebModules.MethodLevelNotSupported,
     141                        AdminWebModules.PermissionLevelGuest,
     142                        AdminWebModules.PermissionLevelUser,
     143                        AdminWebModules.MethodLevelInheritGlobal,
     144                        AdminWebModules.MethodLevelInheritGlobal
     145                };
    137146        }
    138147}
Note: See TracChangeset for help on using the changeset viewer.