X から見ると、
- id1 は、閲覧だけで編集も削除もできない、
- id2 は、閲覧・編集だけで削除はできない、
と解釈して宜しいでしょうか。
なんか設定不足な感じがします。
私にとって説明が読み取りにくかったので、こちらで勝手に推測してこんなん
じゃないのかな?と言う設定をしてみました。
目的は、
ユーザーは、自分の属するユーザーグループが編集権限を与えられているドキュ
メント・グループに対してのみ、編集を行えるようにする。
と言うことで。
modx を使い始めたばかりなので間違っているかもしれませんが、私のやり方だと、
(1) コンテンツの編集を行う Editor という Role を作る。
Content management
[ x ] View a document’s data
[ x ] Create new documents
[ x ] Edit a document
[ x ] Save documents
[ x ] Delete documents
[ ] Edit document META tags and keywords
[ x ] Empty the site’s cache
[ ] View Unpublished Documents
その他はデフォルトのまま。
(2) 編集グループ Editors を作る。
User groups: Editors
(3) 編集グループ Editors が編集するドキュメント・グループ ContentsX を作成する。
Document groups: ContentsX
(4) 編集グループ Editors とドキュメント・グループ ContentsX を関連付ける。
User/ Document group links: Editors - ContentsX
(5) "Editor" 権限をもち、"Editors" グループに属するユーザー editor1 を作成する。
User’s role: "Editor"
Access permission: "Editors"
(6) 新規ドキュメント作成
Title : HelloWorld
Long title : Hello World
Document content : Hello World!
Published? : [ x ]
Access permissions:
[ ] All Document Groups (Public)
[ x ] ContentsX
これで、目的は達せられると思います。
大事な点は、ドキュメントとユーザーの関連付けだと思います。
ユーザーグループ Editors に属さない人が管理画面に入っても、ContentX へ
のアクセス権がないので、ドキュメント・ツリーに (6) のドキュメントは表示
されません。
そんな状況にユーザー X はなっているんじゃないですか。