Merge "fix: fix the public policy check when create/edit share"
This commit is contained in:
commit
157612d7d4
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user