Merge ~caleb-ellis/maas:1811669-edit-mount-points into maas:master
Status: | Merged |
---|---|
Approved by: | Caleb Ellis |
Approved revision: | 591723163009db9b0f37fe2f2db0547f64362c67 |
Merge reported by: | MAAS Lander |
Merged at revision: | not available |
Proposed branch: | ~caleb-ellis/maas:1811669-edit-mount-points |
Merge into: | maas:master |
Diff against target: |
111 lines (+11/-11) 4 files modified
src/maasserver/static/js/angular/controllers/node_details_storage.js (+1/-1) src/maasserver/static/partials/node-details.html (+2/-2) src/maasserver/static/partials/nodedetails/storage/disks-partitions.html (+5/-5) src/maasserver/static/partials/nodedetails/storage/filesystems.html (+3/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberto Donato (community) | Approve | ||
Steve Rydz (community) | Approve | ||
Review via email: mp+367902@code.launchpad.net |
Commit message
LP: #1811669 - hide storage actions that auth user cannot perform
Description of the change
## Done
- Hide storage layout options that the current logged in user cannot perform.
- Added a guard to $scope.
## QA
- Go to the storage tab of a machine that you have permission to edit (i.e. user/admin) and check that you can still perform all actions as normal (e.g change storage layout, mount/unmount filesystems, edit partitions etc)
- Go to the storage tab of a machine that you can view but cannot edit (i.e. auditor) and check that you can see all the storage information, but cannot edit any of it.
## Screenshots
### Machine that you are a user/admin of
https:/
### Machine that you are an auditor of
https:/
LGTM +1