@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 +1 -1
- package/src/hooks/useAuth.ts +4 -1
- package/src/shared-state/PermissionsStore.ts +4 -0
- package/yarn-error.log +15782 -0
package/package.json
CHANGED
package/src/hooks/useAuth.ts
CHANGED
|
@@ -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
|
|
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',
|