Drupal permission, a user case -
the objective of site maintain product
listing.
- each
product
composes of title, description , quantity (cck field). - each
product
belongsshop
. - each
shop
hasmanager
. - all
products
visible all. - a
manager
can add/editproducts
of ownshop
. - a site
admin
can create newshops
, newmanagers
.
how can set permission above scenario?
i thinking of using taxonomy
shop names, taxonomy access control permission control. not sure whether on right track though...
besides, organic groups option?
thanks!
tac solves problems. i'm using in similar scenario. here's how set up:
- create new content type "product" fields specified
- create taxonomy term each shop. enable , require taxonomy on "product" content type
- create role each shop
- enable tac role
- set tac permissions global allow view, deny update, delete, create , list.
- set tac permissions shop's term allow view, update, delete, create , list.
- save , rebuild permissions
that should it, long permissions content type set allow anonymous users view fields in "product".
Comments
Post a Comment