@appcorp/fusion-storybook 0.5.13 → 0.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -270,14 +270,16 @@ export function resolveRbacPermissions({ userRole, moduleName, }) {
270
270
  [USER_ROLE.PARENT]: false,
271
271
  }[userRole] || false);
272
272
  }
273
+ // Class — the API seed grants READ to teachers/students/parents, but the
274
+ // page is a management surface; only admin/staff may open it.
273
275
  if (moduleName === "Class") {
274
276
  return ({
275
277
  [USER_ROLE.SUPER_ADMIN]: true,
276
278
  [USER_ROLE.SCHOOL_ADMIN]: true,
277
279
  [USER_ROLE.STAFF]: true,
278
- [USER_ROLE.TEACHER]: true,
279
- [USER_ROLE.STUDENT]: true,
280
- [USER_ROLE.PARENT]: true,
280
+ [USER_ROLE.TEACHER]: false,
281
+ [USER_ROLE.STUDENT]: false,
282
+ [USER_ROLE.PARENT]: false,
281
283
  }[userRole] || false);
282
284
  }
283
285
  if (moduleName === "Section") {
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- /**
3
- * DiscountCodeMoreActions
4
- *
5
- * Placeholder slot rendered inside the generic page's "more actions"
6
- * area. Keep this file small — add any contextual bulk-actions here
7
- * (export/import, bulk enable/disable) as the product requires.
8
- */
9
- export declare const DiscountCodeMoreActions: React.FC;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useTranslations } from "next-intl";
3
- /**
4
- * DiscountCodeMoreActions
5
- *
6
- * Placeholder slot rendered inside the generic page's "more actions"
7
- * area. Keep this file small — add any contextual bulk-actions here
8
- * (export/import, bulk enable/disable) as the product requires.
9
- */
10
- export const DiscountCodeMoreActions = () => {
11
- const t = useTranslations("discountCode");
12
- return (_jsx("div", { className: "space-y-4", children: _jsx("div", { className: "text-sm text-muted-foreground", children: t("moreActionsInfo") }) }));
13
- };