Forum OpenACS Development: Response to How to make an object type searchable?

Collapse
Posted by Gilbert Wong on

Don,

Yeah, in the ec_products table, there is a column called active_p. Are you saying that if I don't want to release the object for general viewing, all I need to do is to make sure that I only allow the creator to view the object? After the creator is ready to release the object, then I grant permission to the_public or registered_users to read that object. Is that correct?

If so, I see two possibilities:
1. Remove the column active_p and replace it with a permissions check.
2. Leave active_p as is and add the permissions check to make sure that searches only pick up active products.

#1 would require me to rewrite some queries in the ecommerce package to do permissions checks to see if the product is viewable. #2 would require me to write another dml query to set the permission for the product. Both would require about the same amount of work. Any suggestions as to which one I should implement?