args.context.multiRule[0].role!='Admin'){// This is for the new project wizard
return['destroy'];
}
if(args.context.multiRule[0].role!='Admin'&&
(cloudStack.context.users[0].account==getProjectAdmin||isAdmin()||isDomainAdmin())){// This is for the new project wizard: check if current logged in User is the Project Owner
returnargs.context.actions;
}
return[];
},
readOnlyCheck: function(args){// check if current logged in User is the Project Owner