Fix for Deleted Modules showing in AddExisting & CopyExisting dropdown #4572
This commit is contained in:
		| @ -331,7 +331,7 @@ | ||||
|         if (_pageId != "-") | ||||
|         { | ||||
|             _modules = await ModuleService.GetModulesAsync(PageState.Page.SiteId); | ||||
|             _modules = _modules.Where(module => module.PageId == int.Parse(_pageId) && | ||||
|             _modules = _modules.Where(module => module.PageId == int.Parse(_pageId) && module.IsDeleted == false && | ||||
|                 UserSecurity.IsAuthorized(PageState.User, PermissionNames.View, module.PermissionList) && | ||||
|                 (_moduleType == "add" || module.ModuleDefinition.IsPortable)) | ||||
|                 .ToList(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Leigh Pointer
					Leigh Pointer