Changeset 487 for TFP-WebServer/WebServer/src/Commands
- Timestamp:
- Jun 17, 2024, 5:25:43 PM (5 months ago)
- Location:
- TFP-WebServer/WebServer/src/Commands
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TFP-WebServer/WebServer/src/Commands/EnableOpenIDDebug.cs
r405 r487 5 5 [UsedImplicitly] 6 6 public class EnableOpenIDDebug : ConsoleCmdAbstract { 7 p rotectedoverride string getDescription () {7 public override string getDescription () { 8 8 return "enable/disable OpenID debugging"; 9 9 } 10 10 11 p rotectedoverride string[] getCommands () {11 public override string[] getCommands () { 12 12 return new[] {"openiddebug"}; 13 13 } -
TFP-WebServer/WebServer/src/Commands/WebPermissionsCmd.cs
r435 r487 6 6 [UsedImplicitly] 7 7 public class WebPermissionsCmd : ConsoleCmdAbstract { 8 p rotectedoverride string[] getCommands () {8 public override string[] getCommands () { 9 9 return new[] {"webpermission"}; 10 10 } 11 11 12 p rotectedoverride string getDescription () {12 public override string getDescription () { 13 13 return "Manage web permission levels"; 14 14 } 15 15 16 p rotectedoverride string getHelp () {16 public override string getHelp () { 17 17 return @" 18 18 |Set/get permission levels required to access a given web functionality. Default … … 84 84 if (permissionLevelString.EqualsCaseInsensitive (AdminWebModules.MethodLevelInheritKeyword)) { 85 85 if (isGlobal) { 86 SdtdConsole.Instance.Output ( $"Permission level can not use the 'inherit' keyword with the 'global' method keyword.");86 SdtdConsole.Instance.Output ("Permission level can not use the 'inherit' keyword with the 'global' method keyword."); 87 87 return; 88 88 } … … 97 97 } 98 98 99 module.IsDefault = false;100 99 if (isGlobal) { 101 module .LevelGlobal = level;100 module = module.SetLevelGlobal (level); 102 101 } else { 103 module .LevelPerMethod [(int)method] = level;102 module = module.SetLevelForMethod (method, level); 104 103 } 105 104 -
TFP-WebServer/WebServer/src/Commands/WebTokens.cs
r405 r487 9 9 private static readonly Regex validNameTokenMatcher = new Regex (@"^\w+$"); 10 10 11 p rotectedoverride string[] getCommands () {11 public override string[] getCommands () { 12 12 return new[] {"webtokens"}; 13 13 } 14 14 15 p rotectedoverride string getDescription () {15 public override string getDescription () { 16 16 return "Manage web tokens"; 17 17 } 18 18 19 p rotectedoverride string getHelp () {19 public override string getHelp () { 20 20 return "Set/get webtoken permission levels. A level of 0 is maximum permission.\n" + 21 21 "Usage:\n" +
Note:
See TracChangeset
for help on using the changeset viewer.