Changeset 279 for binary-improvements/MapRendering/Web/WebPermissions.cs
- Timestamp:
- Jun 19, 2016, 1:52:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/WebPermissions.cs
r253 r279 96 96 } 97 97 98 public void AddKnownModule (string _module ) {98 public void AddKnownModule (string _module, int _defaultPermission) { 99 99 if (!string.IsNullOrEmpty (_module)) { 100 100 lock (this) { 101 101 if (!IsKnownModule( _module)) { 102 knownModules.Add (_module, new WebModulePermission (_module, 0));102 knownModules.Add (_module, new WebModulePermission (_module, _defaultPermission)); 103 103 } 104 if (_defaultPermission > 0 && !modules.ContainsKey (_module.ToLower ())) { 105 AddModulePermission (_module, _defaultPermission); 106 } 104 107 } 105 108 }
Note:
See TracChangeset
for help on using the changeset viewer.