mirror of https://github.com/apache/cloudstack.git
Allow admin-type accounts to delete normal users' projects
This commit is contained in:
parent
65fad240ce
commit
09b0f4a401
|
|
@ -542,7 +542,7 @@
|
|||
};
|
||||
|
||||
var projectsActionFilter = function(args) {
|
||||
if (args.context.item.account == cloudStack.context.users[0].account) {
|
||||
if (args.context.item.account == cloudStack.context.users[0].account || args.context.users[0].role == '1') {
|
||||
return ['destroy'];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue