From 48d6b157dfa123c746519a4fa69091142b765f82 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Thu, 18 Aug 2022 10:03:27 +0800 Subject: [PATCH] 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 --- src/pages/share/containers/Share/actions/Create.jsx | 2 +- src/pages/share/containers/Share/actions/Edit.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/share/containers/Share/actions/Create.jsx b/src/pages/share/containers/Share/actions/Create.jsx index a2165ff7..eaa58764 100644 --- a/src/pages/share/containers/Share/actions/Create.jsx +++ b/src/pages/share/containers/Share/actions/Create.jsx @@ -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() { diff --git a/src/pages/share/containers/Share/actions/Edit.jsx b/src/pages/share/containers/Share/actions/Edit.jsx index 67cd2b24..6b25b3fb 100644 --- a/src/pages/share/containers/Share/actions/Edit.jsx +++ b/src/pages/share/containers/Share/actions/Edit.jsx @@ -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() {