Skip to content

frontend


Function: useHasFeature()

useHasFeature(key): boolean

Defined in: src/lib/features.ts:9

Check whether the current user's organisation has a feature enabled.

Parameters

key

string

Feature key (e.g. "teaching", "epr", "messaging")

Returns

boolean

true when the feature is present in enabled_features