I haven’t come across this before.
user1 is part of SnrEditor group, SnrEditor group is linked with protectedDocGroup
user2 is part of no group at all.
I have a parent document which is placed in protectedDocGroup with several children documents which are public. user2 can edit the child document. He can duplicate the child document and he can delete them. However he can not create new documents within that parent. I can understand this although it is inconsistent as there are ways open to him to create new document within the protected folder.
The issue is however that when creating a new document in the protected folder an error occurs instead of a getting a message that he lacks teh permissions:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« Execution of a query to the database failed - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’AND sc.deleted=0 ) AND (1=’4’ OR sc.privatemgr=0) ’ at line 3 »
SQL: SELECT DISTINCT sc.* FROM `modx0963`.`cms_site_content` sc LEFT JOIN `modx0963`.`cms_document_groups` dg on dg.document = sc.id WHERE (sc.id IN (9) AND sc.published= AND sc.deleted=0 ) AND (1=’4’ OR sc.privatemgr=0) GROUP BY sc.id LIMIT 1
[Copy SQL to ClipBoard]
EDIT: Oops, sorry this is in modx 0.9.6.3, mysql 5.0.45, php 5.2.5 apache 2.2.6