Skip to content

Commit 09fcf11

Browse files
authored
Merge pull request #8 from contentstack/development
Organisation bug fix for owner
2 parents c7c9f83 + 9b75864 commit 09fcf11

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
# Changelog
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
25

36
## [v1.2.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.2.0) (2021-03-12)
47
- Bug Fix
58
- Release Items issue for API key resolved
6-
- Enhanchment
9+
- Enhancement
710
- Request concurrency added in SDK
811
- New Feature
912
- Workflow module support added
1013
## [v1.1.2](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.2) (2021-01-07)
1114
- Bug Fix
12-
- Retry count on multiple request failuer
15+
- Retry count on multiple request failure
1316
## [v1.1.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.1.1) (2020-10-23)
1417
- Bug Fix
1518
- Stack initialization issue

lib/organization/index.js

+1-1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
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)