fix: fix the policy of image
Use alias policy to distinguish upload_image of glance and cinder Change-Id: I72cf15c3c4a2d31b50d96a643a9a134f8d2db2ab
This commit is contained in:
parent
d3ffb6264d
commit
5cf020aaca
@ -66,6 +66,8 @@ export class CreateForm extends FormAction {
|
|||||||
|
|
||||||
static policy = ['add_image', 'upload_image'];
|
static policy = ['add_image', 'upload_image'];
|
||||||
|
|
||||||
|
static aliasPolicy = ['glance:add_image', 'glance:upload_image'];
|
||||||
|
|
||||||
static allowed() {
|
static allowed() {
|
||||||
return Promise.resolve(true);
|
return Promise.resolve(true);
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,6 @@ export const policyMap = {
|
|||||||
glance: [
|
glance: [
|
||||||
'get_image',
|
'get_image',
|
||||||
'add_image',
|
'add_image',
|
||||||
'upload_image',
|
|
||||||
'delete_image',
|
'delete_image',
|
||||||
'modify_image',
|
'modify_image',
|
||||||
'get_members',
|
'get_members',
|
||||||
|
Loading…
Reference in New Issue
Block a user