Computes whether structure protection (a.k.a. structure locking) is effectively active.
This is the single source of truth for the effective-protection algebra, shared across extensions
that cannot import each other directly: the platform-scripture-editor structure-protection hook
and the platform-scripture Scripture Finder PDP both call it.
The feature applies in simple interface mode only; in power mode it is always inactive. Within
simple mode, an admin project lock that the user cannot toggle forces protection on; otherwise
the user's own preference governs (defaulting to on when never set).
Computes whether structure protection (a.k.a. structure locking) is effectively active.
This is the single source of truth for the effective-protection algebra, shared across extensions that cannot import each other directly: the
platform-scripture-editorstructure-protection hook and theplatform-scriptureScripture Finder PDP both call it.The feature applies in simple interface mode only; in power mode it is always inactive. Within simple mode, an admin project lock that the user cannot toggle forces protection on; otherwise the user's own preference governs (defaulting to on when never set).