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:
Jingwei.Zhang 2022-08-18 10:03:27 +08:00
parent 5d457caf83
commit 48d6b157df
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ export class Create extends FormAction {
}
checkShowPublic() {
return checkPolicyRule('manila:share:create_public_share');
return checkPolicyRule('share:create_public_share');
}
get formItems() {

View File

@ -37,7 +37,7 @@ export class Edit extends ModalAction {
static allowed = (item) => Promise.resolve(item.isMine);
checkShowPublic() {
return checkPolicyRule('manila:share:set_public_share');
return checkPolicyRule('share:set_public_share');
}
get formItems() {