Skip to content

Commit

Permalink
Merge pull request #8 from contentstack/development
Browse files Browse the repository at this point in the history
Organisation bug fix for owner
  • Loading branch information
uttamukkoji authored Mar 23, 2021
2 parents 04487bb + 43502a3 commit 44ab2f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Changelog
## [v1.2.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.1) (2021-03-19)
- Bug Fix
- User get details: Include organization functions for `is_owner` of the organization

## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (2021-03-12)
- Bug Fix
- Release Items issue for API key resolved
- Enhanchment
- Enhancement
- Request concurrency added in SDK
- New Feature
- Workflow module support added
## [v1.1.2](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.2) (2021-01-07)
- Bug Fix
- Retry count on multiple request failuer
- Retry count on multiple request failure
## [v1.1.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.1) (2020-10-23)
- Bug Fix
- Stack initialization issue
Expand Down
2 changes: 1 addition & 1 deletion lib/organization/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function Organization (http, data) {
*/
this.fetch = fetch(http, 'organization')

if ((this.org_roles && (this.org_roles.filter(function (role) { return role.admin === true }).length > 0)) || (this.owner && this.owner === true)) {
if ((this.org_roles && (this.org_roles.filter(function (role) { return role.admin === true }).length > 0)) || (this.owner && this.owner === true) || (this.is_owner && this.is_owner === true)) {
/**
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
* @memberof Organization
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@contentstack/management",
"version": "1.2.0",
"version": "1.2.1",
"description": "The Content Management API is used to manage the content of your Contentstack account",
"main": "dist/node/contentstack-management.js",
"browser": "dist/web/contentstack-management.js",
Expand Down

0 comments on commit 44ab2f1

Please sign in to comment.