- Timestamp:
- May 17, 2023, 11:05:59 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/Commands/WebPermissionsCmd.cs
r426 r434 139 139 140 140 SdtdConsole.Instance.Output ($" {wmp.Name,-25}: {wmp.LevelGlobal,4}{(wmp.IsDefault ? " (default permissions)" : "")}"); 141 if (wmp.LevelPerMethod != null) { 142 for (int iMethod = 0; iMethod < wmp.LevelPerMethod.Length; iMethod++) { 143 int methodLevel = wmp.LevelPerMethod [iMethod]; 144 ERequestMethod method = (ERequestMethod)iMethod; 141 if (wmp.LevelPerMethod == null) { 142 continue; 143 } 144 145 for (int iMethod = 0; iMethod < wmp.LevelPerMethod.Length; iMethod++) { 146 int methodLevel = wmp.LevelPerMethod [iMethod]; 147 ERequestMethod method = (ERequestMethod)iMethod; 145 148 146 147 148 149 if (methodLevel == AdminWebModules.MethodLevelNotSupported) { 150 continue; 151 } 149 152 150 if (methodLevel == AdminWebModules.MethodLevelInheritGlobal) { 151 SdtdConsole.Instance.Output ($" {method.ToStringCached (),25}: {wmp.LevelGlobal,4} (Using API level)"); 152 } else { 153 SdtdConsole.Instance.Output ($" {method.ToStringCached (),25}: {methodLevel,4}"); 154 } 153 if (methodLevel == AdminWebModules.MethodLevelInheritGlobal) { 154 SdtdConsole.Instance.Output ($" {method.ToStringCached (),25}: {wmp.LevelGlobal,4} (Using API level)"); 155 } else { 156 SdtdConsole.Instance.Output ($" {method.ToStringCached (),25}: {methodLevel,4}"); 155 157 } 156 158 }
Note:
See TracChangeset
for help on using the changeset viewer.