@campxdev/shared 1.8.30 → 1.8.32
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.
package/package.json
CHANGED
package/src/hooks/useAuth.ts
CHANGED
|
@@ -66,6 +66,7 @@ function useAuth({ permissionsEndpoint, loginUrl }: AuthParams): AuthResponse {
|
|
|
66
66
|
can_dashboard_view: 1,
|
|
67
67
|
can_individual_pages_view: 1,
|
|
68
68
|
can_analatics_view: res.data.user.isSuperuser == true ? 1 : 0,
|
|
69
|
+
can_admin_view: res.data.user.isSuperuser == true ? 1 : 0,
|
|
69
70
|
} as any
|
|
70
71
|
s.applications = res.data?.applications ?? []
|
|
71
72
|
})
|
|
@@ -8,6 +8,9 @@ export enum PaymentsPermission {
|
|
|
8
8
|
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_EDIT = 'can_manage_payments_profile_permissions_edit',
|
|
9
9
|
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_DELETE = 'can_manage_payments_profile_permissions_delete',
|
|
10
10
|
|
|
11
|
+
// Fee Counter
|
|
12
|
+
CAN_FEE_COUNTER_ACADEMIC_FEE = 'can_fee_counter_academic_fee',
|
|
13
|
+
CAN_FEE_COUNTER_EXAM_FEE = 'can_fee_counter_exam_fee',
|
|
11
14
|
// Fee Groups
|
|
12
15
|
CAN_FEE_GROUP_VIEW = 'can_fee_groups_view',
|
|
13
16
|
CAN_FEE_GROUP_ADD = 'can_fee_groups_add',
|
|
@@ -481,6 +484,10 @@ export enum Permission {
|
|
|
481
484
|
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_EDIT = 'can_manage_payments_profile_permissions_edit',
|
|
482
485
|
CAN_MANAGE_PAYMENTS_PROFILE_PERMISSIONS_DELETE = 'can_manage_payments_profile_permissions_delete',
|
|
483
486
|
|
|
487
|
+
// Fee Counter
|
|
488
|
+
CAN_FEE_COUNTER_ACADEMIC_FEE = 'can_fee_counter_academic_fee',
|
|
489
|
+
CAN_FEE_COUNTER_EXAM_FEE = 'can_fee_counter_exam_fee',
|
|
490
|
+
|
|
484
491
|
// Fee Groups
|
|
485
492
|
CAN_FEE_GROUP_VIEW = 'can_fee_groups_view',
|
|
486
493
|
CAN_FEE_GROUP_ADD = 'can_fee_groups_add',
|
|
@@ -932,6 +939,8 @@ export enum Permission {
|
|
|
932
939
|
CAN_EXAM_TIME_SLOTS_ADD = 'can_exam_time_slots_add',
|
|
933
940
|
CAN_EXAM_TIME_SLOTS_EDIT = 'can_exam_time_slots_edit',
|
|
934
941
|
CAN_EXAM_TIME_SLOTS_DELETE = 'can_exam_time_slots_delete',
|
|
942
|
+
|
|
943
|
+
CAN_ADMIN_VIEW = 'can_admin_view',
|
|
935
944
|
}
|
|
936
945
|
|
|
937
946
|
export interface IPermissions {
|