Skip to content

Commit 5127ffa

Browse files
committed
fix: 🐛 Organization function accessible to 'is_owner'.
1 parent ca44e57 commit 5127ffa

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# Changelog
2-
3-
## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (.....)
2+
## [v1.2.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.1) (2021-03-19)
3+
- Bug Fix
4+
- User get details: Include organization functions for `is_owner` of the organization
5+
## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (2021-03-12)
46
- Bug Fix
57
- Release Items issue for API key resolved
6-
- Enhanchment
8+
- Enhancement
79
- Request concurrency added in SDK
810
- New Feature
911
- Workflow module support added
1012
## [v1.1.2](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.2) (2021-01-07)
1113
- Bug Fix
12-
- Retry count on multiple request failuer
14+
- Retry count on multiple request failure
1315
## [v1.1.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.1) (2020-10-23)
1416
- Bug Fix
1517
- Stack initialization issue

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)) || (this.owner && this.owner === true)) {
35+
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)) {
3636
/**
3737
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
3838
* @memberof Organization

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/management",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "The Content Management API is used to manage the content of your Contentstack account",
55
"main": "dist/node/contentstack-management.js",
66
"browser": "dist/web/contentstack-management.js",

0 commit comments

Comments
 (0)