Skip to content

fix: scope dokploy-server schedules to organization instead of user#4526

Merged
Siumauricio merged 2 commits into
canaryfrom
fix/global-schedules-organization-isolation
May 31, 2026
Merged

fix: scope dokploy-server schedules to organization instead of user#4526
Siumauricio merged 2 commits into
canaryfrom
fix/global-schedules-organization-isolation

Conversation

@Siumauricio
Copy link
Copy Markdown
Contributor

Summary

  • Replaces userId with organizationId on the schedule table so global (dokploy-server) schedules are shared across all owners and admins within the same organization
  • Schedules are now properly isolated between different organizations
  • Includes a data migration that backfills organizationId from the owner membership record for any existing dokploy-server schedules
  • Removes the per-user restriction on list, update, delete, one, and runManually for dokploy-server schedules — access is already gated to owners/admins

Closes #4300

Replaces userId with organizationId on the schedule table so that
global (dokploy-server) schedules are shared across all owners and
admins of the same organization, while remaining isolated between
different organizations.

Includes a data migration that backfills organizationId from the
owner membership record for any existing dokploy-server schedules.

Closes #4300
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 31, 2026
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels May 31, 2026
@Siumauricio Siumauricio merged commit 6ff2ca0 into canary May 31, 2026
1 of 4 checks passed
@Siumauricio Siumauricio deleted the fix/global-schedules-organization-isolation branch May 31, 2026 21:29
Siumauricio added a commit that referenced this pull request Jun 2, 2026
…4526)

* fix: scope dokploy-server schedules to organization instead of user

Replaces userId with organizationId on the schedule table so that
global (dokploy-server) schedules are shared across all owners and
admins of the same organization, while remaining isolated between
different organizations.

Includes a data migration that backfills organizationId from the
owner membership record for any existing dokploy-server schedules.

Closes #4300

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Global Scheduled Tasks are not shared between Owner and Admin users

1 participant