public WebDirectoryUpdatePermission() { EntityDefinition = new WebDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Web Directories"); }
public IEnumerable <IPermissionApplication> GetPermissions(UpdateUnstructuredDataDependenciesCommand command) { var entityDefinition = _entityDefinitionRepository.GetByCode(command.RootEntityDefinitionCode); EntityNotFoundException.ThrowIfNull(entityDefinition, command.RootEntityDefinitionCode); // Try and get a delete permission for the root entity. var permission = _permissionRepository.GetByEntityAndPermissionType(entityDefinition, CommonPermissionTypes.Update("Entity")); if (permission != null) { yield return(permission); } }
public RewriteRuleUpdatePermission() { EntityDefinition = new RewriteRuleEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Rewrite Rules"); }
public PageTemplateUpdatePermission() { EntityDefinition = new PageTemplateEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Page Templates"); }
public DocumentAssetUpdatePermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Document Assets"); }
public CustomEntityUpdatePermission(ICustomEntityDefinition customEntityDefinition) { EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition); PermissionType = CommonPermissionTypes.Update(customEntityDefinition.NamePlural); }
public ImageAssetUpdatePermission() { EntityDefinition = new ImageAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Image Assets"); }
public CurrentUserUpdatePermission() { EntityDefinition = new CurrentUserEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Current User"); }
public NonCofoundryUserUpdatePermission() { EntityDefinition = new NonCofoundryUserEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Non Cofoundry Users"); }