Skip to content

DoCurious API Reference / store / selectIsSchoolAdmin

Function: selectIsSchoolAdmin()

selectIsSchoolAdmin(state): boolean

Defined in: store/useAuthStore.ts:543

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