Esempio n. 1
0
        public static bool HasWritePermission(string folder, int portalid)
        {
            var folderInfo = FolderManager.Instance.GetFolder(portalid, folder);

            return(folder.StartsWith(Definition.XSLFolderName) || (folderInfo is FolderInfo && FolderPermissionController.CanAdminFolder((FolderInfo)folderInfo)));
        }
 public bool CanAdminFolder(IFolderInfo folder)
 {
     return(FolderPermissionController.CanAdminFolder((FolderInfo)folder));
 }