FeatureFuel
0

Let an application update shares on records of objects it owns

Source: twentyhq/twenty#30025 · opened by @admin-laicadev
Scope & Context We build a self-hosted app (twenty-sdk) with a custom object concern (German: «Anliegen»): short notes about a company or a person. A concern can be private. A private concern should be readable by its creator and by the workspace member responsible for the linked company (company.accountOwner) or person (a custom owner relation to workspaceMember). When the responsible member changes, access should follow. Row-level permissions through a relation (#29953) and related record paths (#29328) would express this rule directly, but both need the Organization plan. Record sharing is available, so we would like to keep the shares current from a logic function that reacts to company.updated / person.updated. Current behavior On main (bae69f013e), an application can grant access only when it creates a record, through shareWith (#25428). After that, setRecordShare and setRecordPrivate accept an application token only with a user: A logic function started by a database…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests