@campxdev/shared 1.8.31 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.8.31",
3
+ "version": "1.8.32",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -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
  })
@@ -939,6 +939,8 @@ export enum Permission {
939
939
  CAN_EXAM_TIME_SLOTS_ADD = 'can_exam_time_slots_add',
940
940
  CAN_EXAM_TIME_SLOTS_EDIT = 'can_exam_time_slots_edit',
941
941
  CAN_EXAM_TIME_SLOTS_DELETE = 'can_exam_time_slots_delete',
942
+
943
+ CAN_ADMIN_VIEW = 'can_admin_view',
942
944
  }
943
945
 
944
946
  export interface IPermissions {