@campxdev/shared 2.0.10 → 2.0.12

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": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -142,7 +142,10 @@ const useAuth = ({
142
142
 
143
143
  InstitutionsStore.update((s) => {
144
144
  s.institutions = res.data?.institutions
145
- s.current = res.data?.institutions[0]
145
+ s.current = res.data?.institutions.find(
146
+ (institution) =>
147
+ institution.code === window.location.pathname.split('/')[1],
148
+ )
146
149
  })
147
150
 
148
151
  AssetsStore.update((s) => {
@@ -908,6 +908,10 @@ export enum Permission {
908
908
  // Feed
909
909
  CAN_ADD_FEED = 'can_feed_add',
910
910
 
911
+ //Id cards
912
+ VIEW_ID_CARDS = 'can_view_id_cards',
913
+ GENERATE_ID_CARDS = 'can_generate_id_cards',
914
+
911
915
  // Degrees
912
916
  CAN_DEGREES_ADD = 'can_degrees_add',
913
917
  CAN_DEGREES_DELETE = 'can_degrees_delete',