I'm really sorry I've just realised that the content isn't created by the
user who is logged in. Therefore I've added a new field to the content type
called used_id, the idea is that when the content item is created a user_id
is specified to assign the content to a specific user. I can then compare
the value of the content item's user_id against the user_id of the user
logged in, if it's the same the user is redirected to another page. Is this
a good approach?

Just to give you some background to this I am trying to model permissions
for groups:

Group 1 - Senior members
  Group 2 - members

Group 3 - Senior members
  Group 2 - members

1. All the members in the groups shouldn't be able to view any content item
associated with them.

2. Senior members should be able to view and amend content items within
their sub groups but should not be able to view each others content items -
these content items all have a user_id field to indicate who the content
belongs.

3. Members in sub groups should not be able to view content associated with
senior members nor each others content items.

Thanks for your help.

--
View this message in context: 
http://plone.293351.n2.nabble.com/Dexterity-hide-content-created-by-logged-in-user-tp7032069p7035160.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to