-
-
Notifications
You must be signed in to change notification settings - Fork 14
User assigned policy is removed during push #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@TomSteer I couldn't reproduce the issue. I will add more testing. |
Hi @EdouardDem , Downgrading to 3.2.2 still results in the same issue. However, downgrading to 3.2.1 does fix the issue. I'm not sure what other effects this might have, as I recall you mentioned that 3.2.2 fixes a regression from the 3.2.1 fix. If you need any more information then just let me know. Thanks again for looking into the issue! |
Hi @EdouardDem, Any luck on narrowing this one down? Is there an edge we should be aware of if we downgrade to 3.2.1? |
@EdouardDem I think I've narrowed the issue down. It only seems to happen for policies that aren't assigned to a role. To Reproduce Create a policy in Directus that isn't assigned to a user or role. |
@TomSteer Thank you for pointing this solution. |
Describe the bug
When a policy is assigned at the user level, running a push will remove the assignment.
This was fixed in version 3.2.1 but seems to be happening again in version 3.2.3
To Reproduce
Steps to reproduce the behavior:
Assign a policy to a user in Directus
Run directus-sync push
Open user account in Directus
See policy is no longer assigned
Expected behavior
As users aren't included as part of the sync I would've expected it not to remove the policy assignment.
Versions:
Directus-Sync version: 3.2.3
Directus version: 11.3.5
Database: MSSQL
Directus environment Docker/Self-hosted
The text was updated successfully, but these errors were encountered: