From 701a7264777293f06a40ac8c63fdff19e0231bbf Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 29 Sep 2023 16:55:52 +0200 Subject: [PATCH] :bug: Rules without admin rules --- .../Components/Layouts/Roles/RolesInformations/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/front/Components/Layouts/Roles/RolesInformations/index.tsx b/src/front/Components/Layouts/Roles/RolesInformations/index.tsx index 5da3eda9..bc9eb994 100644 --- a/src/front/Components/Layouts/Roles/RolesInformations/index.tsx +++ b/src/front/Components/Layouts/Roles/RolesInformations/index.tsx @@ -45,7 +45,11 @@ export default function RolesInformations(props: IProps) { }, }); - const rules = await Rules.getInstance().get({}); + const rules = await Rules.getInstance().get({ + where: { + namespace: "notary", + }, + }); if (!role) return; setRoleSelected(role); if (!role.rules) return;