mirror of https://github.com/apache/cloudstack.git
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:
parent
b2824af586
commit
61c543fe50
|
|
@ -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?';
|
||||
|
|
|
|||
Loading…
Reference in New Issue