Add entityId to workflow. Allow filter workflows based on entityId. Restrict creation of workflows based on user entities.

This commit is contained in:
Joao Correia
2025-01-22 16:39:18 +00:00
parent 8f8d5e5640
commit 4895f00184
5 changed files with 124 additions and 29 deletions

View File

@@ -65,7 +65,8 @@ export type RolePermission =
"view_student_record" |
"download_student_record" |
"pay_entity" |
"view_payment_record"
"view_payment_record" |
"view_approval_workflows"
export const DEFAULT_PERMISSIONS: RolePermission[] = [
"view_students",
@@ -74,7 +75,8 @@ export const DEFAULT_PERMISSIONS: RolePermission[] = [
"view_classrooms",
"view_entity_roles",
"view_statistics",
"download_statistics_report"
"download_statistics_report",
"view_approval_workflows"
]
export const ADMIN_PERMISSIONS: RolePermission[] = [