Skip to content

Conversation

@Baspa
Copy link
Contributor

@Baspa Baspa commented Jan 21, 2026

Note

Introduces automatic tenant scoping and fixes site relationships.

  • New BelongsToCurrentTenant trait: auto-populates site_ulid on creating; applied to Content, Domain, Form, FormAction, Menu, Setting.
  • Explicit pivot definitions: updates belongsToMany relations to use concrete pivot tables/keys for site relations in Block, Site (types/users/blocks), Template, Type, User.
  • Creation hooks: after-create pages for Block, Template, Type now attach the current tenant site; removed redundant site_ulid mutations in Content create flow and Form actions manager; cleaned no-op override in CreateSetting.

Written by Cursor Bugbot for commit 1b851a8. This will update automatically on new commits. Configure here.

@Baspa Baspa self-assigned this Jan 21, 2026
@Baspa Baspa added the bug Something isn't working label Jan 21, 2026
@Baspa Baspa changed the base branch from main to 2.x January 21, 2026 08:07
@Baspa Baspa merged commit f7366a4 into 2.x Jan 21, 2026
3 of 4 checks passed
@Baspa Baspa deleted the fix/add-missing-site-ulid-to-resources branch January 21, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants