Merge "fix: fix the public policy check when create/edit share"

This commit is contained in:
Zuul 2022-08-18 07:28:37 +00:00 committed by Gerrit Code Review
commit 157612d7d4
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() {