mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
refactor(permissions): the permission catalog and its decision rule live in shared
PERMISSION_ACTIONS, PermissionLevel, PermissionKey and evaluatePermission() move to shared/src/permissions. PermissionsService decides through evaluatePermission and re-exports the catalog for its importers, and @RequirePermission takes a PermissionKey, so a misspelt action fails to compile. Levels, defaults and every verdict stay as they were.
This commit is contained in:
@@ -111,3 +111,6 @@ export * from './vacay/school-holiday-catalog.schema';
|
||||
|
||||
// Money arithmetic in whole hundredths (sums, equal splits, currency precision).
|
||||
export * from './money/money';
|
||||
|
||||
// Trip permission catalog (keys, levels, defaults) and the rule that decides a check.
|
||||
export * from './permissions/permissions';
|
||||
|
||||
Reference in New Issue
Block a user