fix: fix the public policy check when create/edit share
1. Fix the public policy name in the create share form 2. Fix the public policy name in the edit share form Change-Id: If737a207dcba1914f33bae07061a4e7b87a9970f
This commit is contained in:
parent
5d457caf83
commit
48d6b157df
@ -177,7 +177,7 @@ export class Create extends FormAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
checkShowPublic() {
|
checkShowPublic() {
|
||||||
return checkPolicyRule('manila:share:create_public_share');
|
return checkPolicyRule('share:create_public_share');
|
||||||
}
|
}
|
||||||
|
|
||||||
get formItems() {
|
get formItems() {
|
||||||
|
@ -37,7 +37,7 @@ export class Edit extends ModalAction {
|
|||||||
static allowed = (item) => Promise.resolve(item.isMine);
|
static allowed = (item) => Promise.resolve(item.isMine);
|
||||||
|
|
||||||
checkShowPublic() {
|
checkShowPublic() {
|
||||||
return checkPolicyRule('manila:share:set_public_share');
|
return checkPolicyRule('share:set_public_share');
|
||||||
}
|
}
|
||||||
|
|
||||||
get formItems() {
|
get formItems() {
|
||||||
|
Loading…
Reference in New Issue
Block a user