- Timestamp:
- May 18, 2023, 12:20:16 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/Permissions/AdminWebModules.cs
r434 r435 81 81 82 82 public struct WebModule { 83 private const string methodLevelInheritKeyword = "inherit";84 85 83 public string Name; 86 84 public int LevelGlobal; … … 135 133 permissionElement.AddXmlElement ("method") 136 134 .SetAttrib ("name", method.ToStringCached ()) 137 .SetAttrib ("permission_level", level == MethodLevelInheritGlobal ? methodLevelInheritKeyword : level.ToString ());135 .SetAttrib ("permission_level", level == MethodLevelInheritGlobal ? MethodLevelInheritKeyword : level.ToString ()); 138 136 } 139 137 } … … 195 193 196 194 int methodPermissionLevel; 197 if (permissionLevelString.EqualsCaseInsensitive ( methodLevelInheritKeyword)) {195 if (permissionLevelString.EqualsCaseInsensitive (MethodLevelInheritKeyword)) { 198 196 methodPermissionLevel = MethodLevelInheritGlobal; 199 197 } else if (!int.TryParse (permissionLevelString, out methodPermissionLevel)) { … … 230 228 /// </summary> 231 229 public const int MethodLevelInheritGlobal = int.MinValue; 232 230 231 /// <summary> 232 /// Keyword used to signal inherit level on user facing levels like admins.xml or WebAPIs 233 /// </summary> 234 public const string MethodLevelInheritKeyword = "inherit"; 235 233 236 /// <summary> 234 237 /// Method not supported … … 287 290 288 291 #endregion 292 289 293 } 290 294 }
Note:
See TracChangeset
for help on using the changeset viewer.