@appcorp/fusion-storybook 0.5.1 → 0.5.3

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.
@@ -37,7 +37,8 @@ export interface PlanBE {
37
37
  */
38
38
  export interface WorkspaceBE {
39
39
  agreedCurrency: CURRENCY;
40
- agreedPrice: number;
40
+ /** Prisma `Decimal` — serialised as a string by JSON. */
41
+ agreedPrice: number | string;
41
42
  billingDate: number;
42
43
  billingInterval: BILLING_INTERVAL;
43
44
  classesCount: number;
@@ -167,10 +167,11 @@ export function resolveRbacPermissions({ userRole, moduleName, }) {
167
167
  }
168
168
  // dashboard footer
169
169
  if (moduleName === "Workspace") {
170
+ // Workspace settings expose billing and encrypted secrets — admins only.
170
171
  return ({
171
172
  [USER_ROLE.SUPER_ADMIN]: true,
172
173
  [USER_ROLE.SCHOOL_ADMIN]: true,
173
- [USER_ROLE.STAFF]: true,
174
+ [USER_ROLE.STAFF]: false,
174
175
  [USER_ROLE.TEACHER]: false,
175
176
  [USER_ROLE.STUDENT]: false,
176
177
  [USER_ROLE.PARENT]: false,