Quote from: BobRay at Dec 02, 2015, 02:17 PM
I'm assuming you mean in the Elements tree, but I must be missing something. Wouldn't Element Category Access ACL entries do exactly what you want?
Yes. I mean Elements Tree. Sorry Susan, perhaps I wasn't very clear (struggle a bit with the lingo).
Tried all sorts of combinations of your guides and rtfm Bob. Followed this one:
http://bobsguides.com/controlling-access-to-elements-in-the-manager.html
very closely. Which expands on the RTFM equivalents by having the EditorElement for finer control. A handy insight.
My theoretical question could be summed up by your overview bulletpoint.
Edit the duplicate Policy to set the appropriate Permissions
I wonder if your 'appropriate permissions' are very different from mine. As stated, initially I didn't know about element_tree. Which is kind of basic, but nothing worked until I turned it on. I wonder if the docs/guides could be enhanced by describing "your duplicate content editor using admin template will probably need ... element_tree... etc."
And then for fine tuning of Elements search for _chunk, _tv, _snippet etc in your Content Editor Policy, and turn on as applicable.
You know what I mean.
I think it would help remind newbies that specific permissions are necessary. I just assumed if I followed the docs/guides the element stuff would magically appear. Not so.
Do you think that would help improve the docs?
I also found this interesting (by that I mean I don't get it).
Note that some Permissions are dependent on Permissions in the Policy granted to users in any Context Access ACL entry. If the user does not have the create_snippet Permission there, granting the create Permission here will not let the user create snippets. In order to create snippets, the user must have both Permissions.
When I do the Add Category bit you get access to a limited subset of Access Policies. Presumably a 'context sensitive' menu, meaning that Adminstrator type policies can never appear. Which leads me to ponder where would create_snippet be in this example? Noting that there is a new_snippet which probably means the guide is referencing an older MODx but I'm thinking principles here. So the "the user must have both Permissions" bit leaves me puzzled. Category Element Access Policy could never have create_snippet or new_snippet (or new_tv for that matter). Simply because the available Access Policies never give access to the full range of Policies. I hope that makes sense.
Finally, other parts of permissions/ACLs suggest an OR relationship. If a Context policy has new_tv, a later policy can't take it away. But the create_snippet part of your guide sort of suggests an AND relationship. I think this is interesting, in that maybe some subtle point about the whole ACL approach is buried in this.
Theoretical musings - trying to help improve the guides/docs rather than solve a specific problem.
Getting late here (UK). I'll not be able to reply tonight. Something to ponder.
[ed. note: parthian last edited this post 10 years, 10 months ago.]