Ignore:
Timestamp:
Aug 23, 2020, 9:52:01 AM (4 years ago)
Author:
alloc
Message:

A19 code

Location:
binary-improvements
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements

    • Property svn:ignore
      •  

        old new  
        11bin
         2.idea
  • binary-improvements/MapRendering/Web/API/ExecuteConsoleCommand.cs

    r351 r360  
    3131                        }
    3232
    33                         AdminToolsCommandPermissions atcp =
    34                                 GameManager.Instance.adminTools.GetAdminToolsCommandPermission (command.GetCommands ());
     33                        int commandPermissionLevel = GameManager.Instance.adminTools.GetCommandPermissionLevel (command.GetCommands ());
    3534
    36                         if (_permissionLevel > atcp.PermissionLevel) {
     35                        if (_permissionLevel > commandPermissionLevel) {
    3736                                _resp.StatusCode = (int) HttpStatusCode.Forbidden;
    3837                                Web.SetResponseTextContent (_resp, "You are not allowed to execute this command");
Note: See TracChangeset for help on using the changeset viewer.