-
Notifications
You must be signed in to change notification settings - Fork 78
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
Group permissions lost then moving node to another Site #2444
Comments
@iohann95 : No problems. Note for @anyone that will take this case, it probably needs to not hardcode the "site_" reference:
I don't have time to make a PR at the moment (and test/validate it) but I believe "GROUP_SITE_PREFIX" should be used here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you attempt to move a node from one site to another, all defined group permissions are lost. This occurs because Alfresco wants to clear Site Groups from the old site, but in doing so, it inadvertently removes all group permissions:
alfresco-community-repo/repository/src/main/java/org/alfresco/repo/site/SitesPermissionCleaner.java
Line 136 in 9297fa5
This issue can be resolved by modifying the code to:
if (authority.startsWith(PermissionService.GROUP_PREFIX + "site_") &&
This adjustment ensures that only "site groups" are removed, preserving explicitly defined ones.
Thanks to MorganP at the Alfresco Discord for pointing me to the right direction.
The text was updated successfully, but these errors were encountered: