Example #1
0
        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));
        }
Example #2
0
 public abstract bool CanEditFolder(IAsset item);
Example #3
0
 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);
 }
Example #4
0
 internal abstract bool CanEditFolder(IAsset item);