Skip to content
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

site level permission changes from public to private not detected #12

Open
ChalithaUdara opened this issue Dec 4, 2015 · 4 comments
Open
Assignees

Comments

@ChalithaUdara
Copy link

Hi Maurizio,

When we change the permissions of initially public site to a private one, Permission changes are not properly detailed in node details webscript. The issue is that in alfresco even the public site is changed to private, it allows base.ReadPermissions to GROUP_EVERYONE. but site.SiteConsumer which is originally GROUP_EVERYONE changes accordingly. This could be Alfresco issue.

 "readableAuthorities" : [
"GROUP_EVERYONE"
,
"GROUP_site_newsite2_SiteManager"
,
"GROUP_site_newsite2_SiteCollaborator"
,
"GROUP_site_newsite2_SiteContributor"
,
"GROUP_site_newsite2_SiteConsumer"

],

should change to

"readableAuthorities" : [
"GROUP_site_newsite2_SiteManager"
,
"GROUP_site_newsite2_SiteCollaborator"
,
"GROUP_site_newsite2_SiteContributor"
,
"GROUP_site_newsite2_SiteConsumer"

],

Thanks,
Chalitha

@maoo
Copy link
Contributor

maoo commented Jan 17, 2017

Sorry for the delay on this @ChalithaUdara ; is this PR still requested/needed? I can merge it and include it in the next release (0.8.1)

@ChalithaUdara
Copy link
Author

Yes. it would be good to have this included. I can again do a test run to cover this use case once it is merged

@maoo
Copy link
Contributor

maoo commented Jan 17, 2017

Ok, I've merged locally, run tests and all is good; however, before merging, I'd advise to cover the new logic with tests; @ChalithaUdara , is this something you could provide?

@ChalithaUdara
Copy link
Author

We have tested the logic and it worked as expected (this logic is covered by our product test cases at a higher level). So I think it is safe to merge this. I will provide test-cases to cover new logic for indexer webscripts project, but not immediately. Will do as soon as I can find some free time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants