( surface: CustomizationSurface, )
| 17 | * Absent/undefined → nothing locked (the default). |
| 18 | */ |
| 19 | export function isRestrictedToPluginOnly( |
| 20 | surface: CustomizationSurface, |
| 21 | ): boolean { |
| 22 | const policy = |
| 23 | getSettingsForSource('policySettings')?.strictPluginOnlyCustomization |
| 24 | if (policy === true) return true |
| 25 | if (Array.isArray(policy)) return policy.includes(surface) |
| 26 | return false |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Sources that bypass strictPluginOnlyCustomization. Admin-trusted because: |
no test coverage detected