vm.createCloudInitConfigDrive(): disable permission check on SR.
This commit is contained in:
parent
0df0936022
commit
3ea2b3cc00
@ -110,7 +110,9 @@ function resolveParams (method, params) {
|
||||
// Register this new value.
|
||||
params[key] = object
|
||||
|
||||
permissions.push([ object.id, permission ])
|
||||
if (permissions != null) {
|
||||
permissions.push([ object.id, permission ])
|
||||
}
|
||||
})
|
||||
|
||||
return this.hasPermissions(userId, permissions).then(success => {
|
||||
|
@ -1140,7 +1140,10 @@ createCloudInitConfigDrive.params = {
|
||||
|
||||
createCloudInitConfigDrive.resolve = {
|
||||
vm: ['vm', 'VM', 'administrate'],
|
||||
sr: [ 'sr', 'SR', 'operate' ]
|
||||
|
||||
# Not compatible with resource sets.
|
||||
# FIXME: find a workaround.
|
||||
sr: [ 'sr', 'SR', null ] # 'operate' ]
|
||||
}
|
||||
exports.createCloudInitConfigDrive = createCloudInitConfigDrive
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user