public static RemoveEntriesForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : bool | ||
group | UserGroup | The group. |
provider | IFilesStorageProviderV30 | The provider. |
directory | string | The directory. |
Résultat | bool |
/// <summary> /// Removes all the ACL entries for a subject. /// </summary> /// <param name="subject">The subject.</param> /// <param name="provider">The provider.</param> /// <param name="directory">The directory.</param> /// <returns><c>true</c> if the operation succeeded, <c>false</c> otherwise.</returns> private bool RemoveAllAclEntriesForDirectory(string subject, IFilesStorageProviderV40 provider, string directory) { bool isGroup = lstSubjects.SelectedValue.StartsWith("G."); subject = subject.Substring(2); AuthWriter authWriter = new AuthWriter(Collectors.CollectorsBox.GetSettingsProvider(currentWiki)); if (isGroup) { return(authWriter.RemoveEntriesForDirectory( Users.FindUserGroup(currentWiki, subject), provider, directory)); } else { return(authWriter.RemoveEntriesForDirectory( Users.FindUser(currentWiki, subject), provider, directory)); } }
/// <summary> /// Removes all the ACL entries for a subject. /// </summary> /// <param name="subject">The subject.</param> /// <param name="provider">The provider.</param> /// <param name="directory">The directory.</param> /// <returns><c>true</c> if the operation succeeded, <c>false</c> otherwise.</returns> private bool RemoveAllAclEntriesForDirectory(string subject, IFilesStorageProviderV30 provider, string directory) { bool isGroup = lstSubjects.SelectedValue.StartsWith("G."); subject = subject.Substring(2); if (isGroup) { return(AuthWriter.RemoveEntriesForDirectory( Users.FindUserGroup(subject), provider, directory)); } return(AuthWriter.RemoveEntriesForDirectory( Users.FindUser(subject), provider, directory)); }