So I’m an Etomite native. In Eto, there is no
privateweb or
privatemgr field in the
prefix_site_content table of the database. So when working with a popular MODx’er on getting the newsPublisher snippet to respect its parents permissions - I ran into a snafu.
I got the new news/blog item to successfully acquire the same permissions as its parent (folder). Then I checked in the manager to see that it was reflected there. Sure enough, when you hit "edit," the correct document group checkboxes are checked. However, a glance at the doc tree shows no padlock. A quick "cancel" to take me back to the doc info ... scan ... yep. Shows web and manager access as public.
Upon further investigation, it is because of these new (to me) fields in the content table. So I began looking into them. It appears to me that they do NOT contain any unique information, but are merely shortcuts for other SQL statements aimed at determining permissions.
As a trial and error thing, I went back to edit the doc that had the right groups associated. I saved without making ANY changes. Suddenly, all was well. So I think I’m understanding this whole thing. But it begs the question: why create a new field that is set by reading other information in the database. What might make more sense is an API function to do that. That way, snippet developers won’t have to recreate the wheel. In this case, if the privateweb/privatemgr
status (not field) were checked dynamically, then then the manager would have instantly reflected the permissions of the page accurately, without having to go back in and hit "save" first.
Of course, as my footer says, I could be totally wrong. But it seems to me that these fields were added as a convenience. But in the long haul, having to change permissions once with document groups, then with the content, might be more cumbersome.
Did that make any sense at all