To Reproduce
- Create an organization with user A (owner) and user B (admin)
- As user A, create a compose deployment with a GitHub provider (sourceType: github)
- Log in as user B (admin) and navigate to that same compose
- Go to the General tab → Provider section
- See "Unauthorized Git Provider" card instead of the branch/configuration form
Current vs. Expected behavior
Current: Admin users see an "Unauthorized Git Provider" card that only allows disconnecting the repository. They cannot change the branch, provider, or any git configuration.
Expected: Admin users should have full access to the provider form, including the ability to change the branch, just like the owner. The same access logic used by getAccessibleGitProviderIds() (which already grants admins access to all org git providers) should apply here.
Provide environment information
Operating System: macOS (colima)
Dokploy version: v0.29.4 (canary branch)
Which area(s) are affected? (Select all that apply)
Application, Docker Compose, Docker
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
In both compose.ts and application.ts, the one query checks gitProvider.userId !== ctx.session.userId to set hasGitProviderAccess. This doesn't account for admin/owner roles or the sharedWithOrganization flag on git providers. The fix is to use the existing getAccessibleGitProviderIds() function instead, which already handles all these cases correctly.
Will you send a PR to fix it?
Yes
To Reproduce
Current vs. Expected behavior
Current: Admin users see an "Unauthorized Git Provider" card that only allows disconnecting the repository. They cannot change the branch, provider, or any git configuration.
Expected: Admin users should have full access to the provider form, including the ability to change the branch, just like the owner. The same access logic used by getAccessibleGitProviderIds() (which already grants admins access to all org git providers) should apply here.
Provide environment information
Which area(s) are affected? (Select all that apply)
Application, Docker Compose, Docker
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
In both compose.ts and application.ts, the
onequery checksgitProvider.userId !== ctx.session.userIdto sethasGitProviderAccess. This doesn't account for admin/owner roles or thesharedWithOrganizationflag on git providers. The fix is to use the existinggetAccessibleGitProviderIds()function instead, which already handles all these cases correctly.Will you send a PR to fix it?
Yes