Skip to content
This repository was archived by the owner on May 2, 2025. It is now read-only.

Commit 2c35667

Browse files
committed
Fix ABP settings not editable by org admin.
Closes #85.
1 parent 6e3d2f0 commit 2c35667

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/changelog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.9.1
4+
5+
**Bugfixes:**
6+
7+
* Fix ABP sesstings not editable by organization admin
8+
([#85](https://github.com/brocaar/lora-app-server/issues/85))
9+
310
## 0.9.0
411

512
**Features & Changes:**

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pages:
1515
- changelog.md
1616

1717
extra:
18-
version: '0.9.0'
18+
version: '0.9.1'
1919
github:
2020
download_release: true
2121

ui/src/views/nodes/ActivateNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class ActivateNode extends Component {
3737
});
3838

3939
this.setState({
40-
isApplicationAdmin: (SessionStore.isAdmin() || SessionStore.isApplicationAdmin(this.props.params.applicationID)),
40+
isApplicationAdmin: (SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.params.organizationID) || SessionStore.isApplicationAdmin(this.props.params.applicationID)),
4141
});
4242

4343
SessionStore.on("change", () => {
4444
this.setState({
45-
isApplicationAdmin: (SessionStore.isAdmin() || SessionStore.isApplicationAdmin(this.props.params.applicationID)),
45+
isApplicationAdmin: (SessionStore.isAdmin() || SessionStore.isOrganizationAdmin(this.props.params.organizationID) || SessionStore.isApplicationAdmin(this.props.params.applicationID)),
4646
});
4747
});
4848
}

0 commit comments

Comments
 (0)