UI: add generate key button to appropriate roles

This commit is contained in:
Isaac Chiang 2013-01-02 10:50:06 +08:00 committed by Rohit Yadav
parent cc3d692ab8
commit 6ce01c46fc
2 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,7 @@ migrateVolume=com.cloud.api.commands.MigrateVolumeCmd;15
#### use that key...the key is stored in the db associated w/
#### the userId...every request to the developer API should be
#### checked against the key
registerUserKeys=com.cloud.api.commands.RegisterCmd;1
registerUserKeys=com.cloud.api.commands.RegisterCmd;15
### async-query command
queryAsyncJobResult=com.cloud.api.commands.QueryAsyncJobResultCmd;15

View File

@ -1282,6 +1282,7 @@
} else {
if(isSelfOrChildDomainUser(jsonObj.username, jsonObj.accounttype, jsonObj.domainid, jsonObj.iscallerchilddomain)) {
allowedActions.push("changePassword");
allowedActions.push("generateKeys");
}
}
return allowedActions;