You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2020/05/07 09:58:43 UTC

[cloudstack-primate] branch master updated: config: allow read-only admin to see some views

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new f32d3ba  config: allow read-only admin to see some views
f32d3ba is described below

commit f32d3ba1d289075527a6bd0aad24f9a4fd790071
Author: Rohit Yadav <ro...@shapeblue.com>
AuthorDate: Thu May 7 15:27:50 2020 +0530

    config: allow read-only admin to see some views
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
---
 src/config/section/offering.js | 12 ++++++------
 src/config/section/role.js     |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/config/section/offering.js b/src/config/section/offering.js
index 857e90e..b4c53b8 100644
--- a/src/config/section/offering.js
+++ b/src/config/section/offering.js
@@ -19,13 +19,13 @@ export default {
   name: 'offering',
   title: 'Offerings',
   icon: 'shopping',
-  permission: ['createServiceOffering', 'createDiskOffering'],
+  permission: ['listServiceOfferings', 'listDiskOfferings', 'listDomains'],
   children: [
     {
       name: 'computeoffering',
       title: 'Compute Offerings',
       icon: 'cloud',
-      permission: ['listServiceOfferings', 'createServiceOffering'],
+      permission: ['listServiceOfferings', 'listDomains'],
       params: { isrecursive: 'true' },
       columns: ['name', 'displaytext', 'cpunumber', 'cpuspeed', 'memory', 'tags', 'domain', 'zone', 'order'],
       details: ['name', 'id', 'displaytext', 'offerha', 'provisioningtype', 'storagetype', 'iscustomized', 'limitcpuuse', 'cpunumber', 'cpuspeed', 'memory', 'tags', 'domain', 'zone', 'created'],
@@ -96,7 +96,7 @@ export default {
       name: 'diskoffering',
       title: 'Disk Offerings',
       icon: 'hdd',
-      permission: ['listDiskOfferings', 'createDiskOffering'],
+      permission: ['listDiskOfferings', 'listDomains'],
       params: { isrecursive: 'true' },
       columns: ['name', 'displaytext', 'disksize', 'tags', 'domain', 'zone', 'order'],
       details: ['name', 'id', 'displaytext', 'disksize', 'provisioningtype', 'storagetype', 'iscustomized', 'tags', 'domain', 'zone', 'created'],
@@ -136,7 +136,7 @@ export default {
       name: 'backupoffering',
       title: 'Backup Offerings',
       icon: 'cloud-upload',
-      permission: ['listBackupOfferings', 'importBackupOffering'],
+      permission: ['listBackupOfferings', 'listInfrastructure'],
       columns: ['name', 'description', 'zoneid'],
       details: ['name', 'id', 'description', 'externalid', 'zone', 'created'],
       actions: [{
@@ -157,7 +157,7 @@ export default {
       name: 'networkoffering',
       title: 'Network Offerings',
       icon: 'wifi',
-      permission: ['listNetworkOfferings', 'createNetworkOffering'],
+      permission: ['listNetworkOfferings', 'listInfrastructure'],
       params: { isrecursive: 'true' },
       columns: ['name', 'state', 'guestiptype', 'traffictype', 'networkrate', 'tags', 'domain', 'zone', 'order'],
       details: ['name', 'id', 'displaytext', 'guestiptype', 'traffictype', 'networkrate', 'ispersistent', 'egressdefaultpolicy', 'availability', 'conservemode', 'specifyvlan', 'specifyipranges', 'supportspublicaccess', 'supportsstrechedl2subnet', 'tags', 'service', 'domain', 'zone'],
@@ -221,7 +221,7 @@ export default {
       name: 'vpcoffering',
       title: 'VPC Offerings',
       icon: 'deployment-unit',
-      permission: ['listVPCOfferings', 'createVPCOffering'],
+      permission: ['listVPCOfferings', 'listInfrastructure'],
       params: { isrecursive: 'true' },
       resourceType: 'VpcOffering',
       columns: ['name', 'state', 'displaytext', 'domain', 'zone', 'order'],
diff --git a/src/config/section/role.js b/src/config/section/role.js
index 13b1a24..0aa5d64 100644
--- a/src/config/section/role.js
+++ b/src/config/section/role.js
@@ -19,7 +19,7 @@ export default {
   name: 'role',
   title: 'Roles',
   icon: 'idcard',
-  permission: ['listRoles', 'createRole'],
+  permission: ['listRoles', 'listRolePermissions'],
   columns: ['name', 'type', 'description'],
   details: ['name', 'id', 'type', 'description'],
   tabs: [{