Fix Manage Access dialog to not allow entering blank user (#7844)

This commit is contained in:
Charles Gagnon
2019-10-21 10:07:28 -07:00
committed by GitHub
parent a05edc619c
commit 8b46143d48

View File

@@ -54,7 +54,7 @@ export class HdfsModel {
* @param type The type of ACL to create * @param type The type of ACL to create
*/ */
public createAndAddAclEntry(name: string, type: AclType): void { public createAndAddAclEntry(name: string, type: AclType): void {
if (!this.permissionStatus) { if (!this.permissionStatus || !name || name.length < 1) {
return; return;
} }
const newEntry = new AclEntry(type, name, name); const newEntry = new AclEntry(type, name, name);