public string GetFolderPermissionsByFolderPath(ArrayList arrFolderPermissions, string FolderPath, string PermissionKey)
        {
            //Create a Folder Permission Collection from the ArrayList
            var folderPermissions = new FolderPermissionCollection(arrFolderPermissions, FolderPath);

            //Return the permission string for permissions with specified FolderPath
            return(folderPermissions.ToString(PermissionKey));
        }
        public string GetFolderPermissionsByFolderPath(ArrayList arrFolderPermissions, string FolderPath, string PermissionKey)
        {
            //Create a Folder Permission Collection from the ArrayList
            var folderPermissions = new FolderPermissionCollection(arrFolderPermissions, FolderPath);

            //Return the permission string for permissions with specified FolderPath
            return folderPermissions.ToString(PermissionKey);
        }
 public virtual bool HasFolderPermission(FolderPermissionCollection objFolderPermissions, string PermissionKey)
 {
     return PortalSecurity.IsInRoles(objFolderPermissions.ToString(PermissionKey));
 }
示例#4
0
 public virtual bool HasFolderPermission(FolderPermissionCollection objFolderPermissions, string PermissionKey)
 {
     return(PortalSecurity.IsInRoles(objFolderPermissions.ToString(PermissionKey)));
 }