@appcorp/fusion-storybook 0.5.25 → 0.5.29

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.
@@ -299,14 +299,16 @@ export function resolveRbacPermissions({ userRole, moduleName, }) {
299
299
  [USER_ROLE.PARENT]: false,
300
300
  }[userRole] || false);
301
301
  }
302
+ // Subject is a management surface; teachers/students/parents keep API READ
303
+ // for pickers but do not get the page.
302
304
  if (moduleName === "Subject") {
303
305
  return ({
304
306
  [USER_ROLE.SUPER_ADMIN]: true,
305
307
  [USER_ROLE.SCHOOL_ADMIN]: true,
306
308
  [USER_ROLE.STAFF]: true,
307
- [USER_ROLE.TEACHER]: true,
308
- [USER_ROLE.STUDENT]: true,
309
- [USER_ROLE.PARENT]: true,
309
+ [USER_ROLE.TEACHER]: false,
310
+ [USER_ROLE.STUDENT]: false,
311
+ [USER_ROLE.PARENT]: false,
310
312
  }[userRole] || false);
311
313
  }
312
314
  // People management — admin/staff surfaces only.