Changeset 487 for TFP-WebServer/WebServer/src/Commands/WebPermissionsCmd.cs
- Timestamp:
- Jun 17, 2024, 5:25:43 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.