public override bool CanEditFolder(IAsset item) { var id = (item as IFolder)?.Id ?? (item as IFile)?.ParentId ?? throw new ArgumentException("Should be a DNN asset", nameof(item)); var folder = FolderManager.Instance.GetFolder(id); return(folder != null && FolderPermissionController.CanAddFolder(folder as FolderInfo)); }
public abstract bool CanEditFolder(IAsset item);
public override bool CanEditFolder(ToSic.Eav.Apps.Assets.IAsset item) { //var folder = FolderManager.Instance.GetFolder(folderId); //return folder != null && FolderPermissionController.CanAddFolder(folder as FolderInfo); return(true); }
internal abstract bool CanEditFolder(IAsset item);