mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: add generate key button to appropriate roles
This commit is contained in:
parent
cc3d692ab8
commit
6ce01c46fc
@ -260,7 +260,7 @@ migrateVolume=com.cloud.api.commands.MigrateVolumeCmd;15
|
|||||||
#### use that key...the key is stored in the db associated w/
|
#### use that key...the key is stored in the db associated w/
|
||||||
#### the userId...every request to the developer API should be
|
#### the userId...every request to the developer API should be
|
||||||
#### checked against the key
|
#### checked against the key
|
||||||
registerUserKeys=com.cloud.api.commands.RegisterCmd;1
|
registerUserKeys=com.cloud.api.commands.RegisterCmd;15
|
||||||
|
|
||||||
### async-query command
|
### async-query command
|
||||||
queryAsyncJobResult=com.cloud.api.commands.QueryAsyncJobResultCmd;15
|
queryAsyncJobResult=com.cloud.api.commands.QueryAsyncJobResultCmd;15
|
||||||
|
|||||||
@ -1282,6 +1282,7 @@
|
|||||||
} else {
|
} else {
|
||||||
if(isSelfOrChildDomainUser(jsonObj.username, jsonObj.accounttype, jsonObj.domainid, jsonObj.iscallerchilddomain)) {
|
if(isSelfOrChildDomainUser(jsonObj.username, jsonObj.accounttype, jsonObj.domainid, jsonObj.iscallerchilddomain)) {
|
||||||
allowedActions.push("changePassword");
|
allowedActions.push("changePassword");
|
||||||
|
allowedActions.push("generateKeys");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return allowedActions;
|
return allowedActions;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user