bug 12645: cloudstack 3.0 new UI - account page - show add button only when it's root admin. Hide it otherwise.

This commit is contained in:
Jessica Wang 2012-01-04 16:17:01 -08:00
parent b2824af586
commit 61c543fe50
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,12 @@
actions: {
add: {
label: 'Create account',
preFilter: function(args) {
if(isAdmin())
return true;
else
return false;
},
messages: {
confirm: function(args) {
return 'Are you sure you want to create an account?';