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

Location:
binary-improvements2/MapRendering
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/MapRendering/ModInfo.xml

    r425 r426  
    55        <Description value="Render the game map to image map tiles as it is uncovered" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.0.258.0" />
     7        <Version value="21.0.270.0" />
    88        <Website value="" />
    99</xml>
  • binary-improvements2/MapRendering/src/Api/Map.cs

    r425 r426  
    33using Utf8Json;
    44using Webserver;
     5using Webserver.Permissions;
    56using Webserver.WebAPI;
    67
     
    3031                }
    3132
    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                };
    3840        }
    3941}
Note: See TracChangeset for help on using the changeset viewer.