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);
        }
Ejemplo n.º 3
0
 public virtual bool HasFolderPermission(FolderPermissionCollection objFolderPermissions, string PermissionKey)
 {
     return PortalSecurity.IsInRoles(objFolderPermissions.ToString(PermissionKey));
 }
Ejemplo n.º 4
0
 public virtual bool HasFolderPermission(FolderPermissionCollection objFolderPermissions, string PermissionKey)
 {
     return(PortalSecurity.IsInRoles(objFolderPermissions.ToString(PermissionKey)));
 }