mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
CLOUDSTACK-1064:A type error occurs when trying to add account/register template: this is because of accounts conext being undefined
This commit is contained in:
parent
9deea9bb55
commit
44ceff4224
@ -642,12 +642,16 @@
|
||||
},
|
||||
vmLimit: {
|
||||
label: 'label.instance.limits',
|
||||
isEditable: function(context) {
|
||||
isEditable: function(context) {
|
||||
|
||||
if(context.accounts == undefined)
|
||||
return false;
|
||||
else {
|
||||
if (context.accounts[0].accounttype == roleTypeUser || context.accounts[0].accounttype == roleTypeDomainAdmin) //updateResourceLimits is only allowed on account whose type is user or domain-admin
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
} }
|
||||
},
|
||||
ipLimit: {
|
||||
label: 'label.ip.limits',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user