Skip to content

DoCurious API Reference / store / selectCanAccessSchool

Function: selectCanAccessSchool() ​

selectCanAccessSchool(state): boolean

Defined in: store/useAuthStore.ts:536

Check if the user can access school features (has school affiliation + school role).

Parameters ​

state ​

AuthStore

Auth store state

Returns ​

boolean

true if the user has a schoolId and a qualifying school role

DoCurious Platform Documentation