Skip to content

Commit 09de6f7

Browse files
committed
Stack function within org for the owner issue resolve
1 parent 79015c2 commit 09de6f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function Organization (http, data) {
3232
*/
3333
this.fetch = fetch(http, 'organization')
3434

35-
if (this.org_roles && (this.org_roles.filter(function (role) { return role.admin === true }).length > 0)) {
35+
if ((this.org_roles && (this.org_roles.filter(function (role) { return role.admin === true }).length > 0)) || (this.owner && this.owner === true)) {
3636
/**
3737
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
3838
* @memberof Organization

0 commit comments

Comments
 (0)