Skip to content

DoCurious API Reference / store / selectIsSchoolAdmin

Function: selectIsSchoolAdmin() ​

selectIsSchoolAdmin(state): boolean

Defined in: store/useAuthStore.ts:545

Check if the user is a school admin at any level (head or regular).

Parameters ​

state ​

AuthStore

Auth store state

Returns ​

boolean

true if the user's role is 'head_school_admin' or 'school_admin'

DoCurious Platform Documentation