Skip to content

Commit 5948a10

Browse files
committed
org: fix org set validation
1 parent 46cdebe commit 5948a10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/org.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function orgSet (org, user, role, opts) {
7171
if (!user) {
7272
throw new Error('Second argument `username` is required.')
7373
}
74-
if (!['owner', 'admin', 'developer'].find(role)) {
74+
if (!['owner', 'admin', 'developer'].find(x => x === role)) {
7575
throw new Error('Third argument `role` must be one of `owner`, `admin`, or `developer`, with `developer` being the default value if omitted.')
7676
}
7777
return liborg.set(org, user, role, opts).then(memDeets => {

0 commit comments

Comments
 (0)