- Timestamp:
- Jan 19, 2019, 6:12:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetAllowedCommands.cs
r325 r351 4 4 namespace AllocsFixes.NetConnections.Servers.Web.API { 5 5 public class GetAllowedCommands : WebAPI { 6 public override void HandleRequest (HttpListenerRequest req, HttpListenerResponse resp, WebConnectionuser,7 int permissionLevel) {6 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 7 int _permissionLevel) { 8 8 JSONObject result = new JSONObject (); 9 9 JSONArray entries = new JSONArray (); … … 11 11 AdminToolsCommandPermissions atcp = 12 12 GameManager.Instance.adminTools.GetAdminToolsCommandPermission (cc.GetCommands ()); 13 if ( permissionLevel <= atcp.PermissionLevel) {13 if (_permissionLevel <= atcp.PermissionLevel) { 14 14 string cmd = string.Empty; 15 15 foreach (string s in cc.GetCommands ()) { … … 29 29 result.Add ("commands", entries); 30 30 31 WriteJSON ( resp, result);31 WriteJSON (_resp, result); 32 32 } 33 33
Note:
See TracChangeset
for help on using the changeset viewer.