mgr/dashboard: Show pool dropdown for block-mgr

Fixes: http://tracker.ceph.com/issues/37295

Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
This commit is contained in:
Ernesto Puerta 2018-11-16 20:15:24 +01:00
parent ac5b4f6d78
commit b3e69a9609
No known key found for this signature in database
GPG Key ID: B4F6FFCB7A8384ED

View File

@ -107,6 +107,7 @@ READ_ONLY_ROLE = Role('read-only', 'Read-Only', dict([
# block manager role provides all permission for block related scopes
BLOCK_MGR_ROLE = Role('block-manager', 'Block Manager', {
Scope.RBD_IMAGE: [_P.READ, _P.CREATE, _P.UPDATE, _P.DELETE],
Scope.POOL: [_P.READ],
Scope.ISCSI: [_P.READ, _P.CREATE, _P.UPDATE, _P.DELETE],
Scope.RBD_MIRRORING: [_P.READ, _P.CREATE, _P.UPDATE, _P.DELETE],
})