Clean up and simplify some code

This commit is contained in:
Schuyler Cebulskie
2016-10-17 00:02:48 -04:00
parent e04dbbdb82
commit 62b93659e6
5 changed files with 8 additions and 8 deletions

View File

@@ -150,7 +150,7 @@ class Role {
* @returns {boolean}
*/
hasPermissions(permissions, explicit = false) {
return permissions.map(p => this.hasPermission(p, explicit)).every(v => v);
return permissions.every(p => this.hasPermission(p, explicit));
}
/**