Skip to content

Commit 6dc79e2

Browse files
authored
Merge pull request #8 from contentstack/development
Organisation bug fix for owner
2 parents b2e3e03 + ea19e74 commit 6dc79e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+163
-98
lines changed

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
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

dist/es-modules/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function Organization(http, data) {
4545

4646
if (this.org_roles && this.org_roles.filter(function (role) {
4747
return role.admin === true;
48-
}).length > 0 || this.owner && this.owner === true) {
48+
}).length > 0 || this.owner && this.owner === true || this.is_owner && this.is_owner === true) {
4949
/**
5050
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
5151
* @memberof Organization

dist/es5/organization/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ function Organization(http, data) {
7878

7979
if (this.org_roles && this.org_roles.filter(function (role) {
8080
return role.admin === true;
81-
}).length > 0 || this.owner && this.owner === true) {
81+
}).length > 0 || this.owner && this.owner === true || this.is_owner && this.is_owner === true) {
8282
/**
8383
* @description The Get all stacks in an organization call fetches the list of all stacks in an Organization.
8484
* @memberof Organization

dist/nativescript/contentstack-management.js

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

dist/node/contentstack-management.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-native/contentstack-management.js

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

dist/web/contentstack-management.js

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

jsdocs/BulkOperation.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,8 @@ <h5>Returns:</h5>
800800
<br class="clear">
801801

802802
<footer>
803-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Fri Mar 12 2021 11:33:07 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
803+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Mon Mar 22 2021 10:37:22 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
804+
804805
</footer>
805806

806807
<script>prettyPrint();</script>

jsdocs/ContentType.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,8 @@ <h5>Parameters:</h5>
13171317
<br class="clear">
13181318

13191319
<footer>
1320-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Fri Mar 12 2021 11:33:07 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1320+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Mon Mar 22 2021 10:37:22 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1321+
13211322
</footer>
13221323

13231324
<script>prettyPrint();</script>

jsdocs/Contentstack.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,8 @@ <h5>Examples</h5>
829829
<br class="clear">
830830

831831
<footer>
832-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Fri Mar 12 2021 11:33:07 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
832+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.5</a> on Mon Mar 22 2021 10:37:22 GMT+0530 (India Standard Time) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
833+
833834
</footer>
834835

835836
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)