Remove the IS_CREATE_RECORDS_PERMISSION_ENABLED feature flag
Merged
CH
10d ago+17+17+01234567890123456789-198-198-012345678901234567890123456789
Why
The create permission has had its own columns since 2.57, backfilled from update, and every write path still defaults create to update when create is not given. The flag only chose whether a create check reads canCreate* or falls back to canUpdate*, and both give the same answer on backfilled data. This removes IS_CREATE_RECORDS_PERMISSION_ENABLED and always checks create on its own. Second of a series removing the messaging and permissions flags, one PR per flag (after #31458).
What changes
getEnforcedOperationTypeis deleted. Its five callers (all-records, RLS, limiting roles, disabled actions) pass the requested operation type straight through.followUpdateWhenCreatePermissionIsDisabledand its spec are deleted.SettingPermissionsServicereturns the computed records permissions as they are, and no longer readsfeatureFlagsMap.featureFlagsMapis dropped from themetadataMapspicks offindRlsRulesAccessingOperationandfindRlsRuleInaccessibleFields, which no longer need it.- The key is removed from
FeatureFlagKey, the dev seeder, the admin panel list and the generated schemas (front and client SDK). LeftoverfeatureFlagrows are ignored, same as previous flag removals.
What this turns on for every workspace
- A role, object permission or RLS rule where create was set apart from update through the API now applies that create value. Through the settings UI the two cannot diverge.
canCreateObjectRecordsas a disabled object action is enforced on its own. The 2.57 backfill added it wherever update was disabled.- The front receives the real create permission instead of a copy of update.
Not checked against prod: how many rows have create different from update today.
Screenshots
No UI change.
Validation
Server typecheck, lint:diff-with-main on server and front, and the 57 permissions unit suites. No upgrade command is touched.