[permissions] Deprecate ObjectsPermissionsDeprecated (2/3) (#14450)

Following https://github.com/twentyhq/twenty/pull/14306 , working on the
deprecation of objectRecordsPermissions + renaming of objectPermissions
-> objectsPermissions

In this PR
- Removal of objectRecordsPermissions (was not used in the FE any
longer)
- Addition of objectsPermissions, same as objectPermission but renamed.
objectPermission is no longer used in the FE.

Next step
- Remove unused objectPermissions
This commit is contained in:
Marie
2025-09-12 16:02:42 +02:00
committed by GitHub
parent 5b9cda3341
commit 3270c64a96
16 changed files with 34 additions and 95 deletions
@@ -102,15 +102,12 @@ export class UserWorkspace {
@Field(() => [PermissionFlagType], { nullable: true })
permissionFlags?: PermissionFlagType[];
@Field(() => [PermissionsOnAllObjectRecords], {
nullable: true,
deprecationReason: 'Use objectPermissions instead',
})
objectRecordsPermissions?: PermissionsOnAllObjectRecords[];
@Field(() => [ObjectPermissionDTO], { nullable: true })
objectPermissions?: ObjectPermissionDTO[];
@Field(() => [ObjectPermissionDTO], { nullable: true })
objectsPermissions?: ObjectPermissionDTO[];
@Field(() => [TwoFactorAuthenticationMethodSummaryDto], { nullable: true })
twoFactorAuthenticationMethodSummary?: TwoFactorAuthenticationMethodSummaryDto[];
}