Allow admin-type accounts to delete normal users' projects

This commit is contained in:
Brian Federle 2011-12-12 15:28:50 -08:00
parent 65fad240ce
commit 09b0f4a401
1 changed files with 1 additions and 1 deletions

View File

@ -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'];
}