source: TFP-WebServer/WebServer/src/Permissions/PermissionUtils.cs@ 473

Last change on this file since 473 was 425, checked in by alloc, 20 months ago
  • API "map" added, currently only supports GET with the ID "config"
  • API "player" added, currently only supports getting online players with some of the info not supported yet (playtime, last online, level)
  • Only logged in player's data is shown unless the user has the permission for "webapi.viewallplayers"
  • Internal refactoring
  • (Updated version to 21.0.258)
File size: 428 bytes
Line 
1namespace Webserver.Permissions {
2 public static class PermissionUtils {
3 public static bool CanViewAllPlayers (int _permissionLevel) {
4 return AdminWebModules.Instance.ModuleAllowedWithLevel ("webapi.viewallplayers", _permissionLevel);
5 }
6
7 public static bool CanViewAllClaims (int _permissionLevel) {
8 return AdminWebModules.Instance.ModuleAllowedWithLevel ("webapi.viewallclaims", _permissionLevel);
9 }
10 }
11}
Note: See TracBrowser for help on using the repository browser.