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 6a4e784  Allow domain admins to configure resource limits (#855)
6a4e784 is described below

commit 6a4e7843a8ae200922ef1e95a6cda08bfdc25ca9
Author: Pearl Dsilva <[email protected]>
AuthorDate: Wed Nov 11 19:19:59 2020 +0530

    Allow domain admins to configure resource limits (#855)
    
    Co-authored-by: Pearl Dsilva <[email protected]>
---
 src/config/section/project.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config/section/project.js b/src/config/section/project.js
index d3ad858..72cdd71 100644
--- a/src/config/section/project.js
+++ b/src/config/section/project.js
@@ -50,7 +50,7 @@ export default {
     },
     {
       name: 'limits',
-      show: (record, route, user) => { return 
['Admin'].includes(user.roletype) },
+      show: (record, route, user) => { return ['Admin', 
'DomainAdmin'].includes(user.roletype) || record.isCurrentUserProjectAdmin },
       component: () => import('@/components/view/ResourceLimitTab.vue')
     }
   ],

Reply via email to