-
- 2,204 Posts
mm there is another problem:
i use the context menu by clicking on a folder that I have no rights to and select "create doc here" and then i can fill my page etc on saving I get an error saying that I am not allowed to save the page in that folder, so I select a folder my opening the icon (parent) and selecting a folder that I am allowed to add documents to and press save. now my document is saved in my folder but it has the rights of the folder that i clicked the first time to add a document.
I do not have a fix for that yet because its a whole new bug, I have no idea if that bug is in Jira already because Jira is down
-
- 2,204 Posts
Man this is harder that i think it was.
the new parent is trigerd on save not on setting the values for the current doc.
so the above does work but would add the new page to all docgroups the current user belogs to...
so this must be alterd maybe on saving the document?
could someone with some more php and modx core knolige have a look at this problem?
the main problem is that a newly created document that is triggerd from a context menu on a document that is not in the docgroup of the user gets he same docgroups as the forbidden document, when saving this document to a folder that the user has acces to the document will be saved but inaccesible to the user because the new document is not in the docgroup of the new document.
maybe when wanting to create a new document when clicking a forbidden documents context menu there must be a restrictionwarning and document can not be made.
better would be that on saving a new document that there is a check in what folder the new doc is placed and take the docgroups from that parent.
I hope that its a bit clear what i mean, sorry for the long story.
Dimmy
Hi Dimmy, can you open an issue in Jira for this please?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me