Problem with user permissions

barun019

Joined: 2005-06-08
Posts: 9
Posted: Fri, 2005-08-12 04:34

Okay, so I figured out how to set permissions for each user in terms of them being able to view the full image or just the resized version, etc. But I found that even if a user does not have permissions to view a full-size image, they are still able to add that full-size image to their cart! (kind of defeats the whole purpose). I would like for those who are supposed to have permissions to be able to use the cart module. Is there any way at all to do this??

Basically, what I would like to do is:
IF user can view fullsize image
THEN display the "add to cart" option
ELSE do not display the cart

I am willing to spend time and make adjustments to the code myself to accomplish this, but I need some help as I am not very familiar with how a user's permissions can be accessed.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-08-12 08:18

IMO, we need a "add to cart" permission or even finer permissions like "download as zip", "print via cart" or so.

and as this won't be there for some time, let me explain how it should be at the moment:
[core] view item should determine whether you can add an item to the cart or not.

 
drhiii

Joined: 2003-04-27
Posts: 397
Posted: Tue, 2005-08-23 23:54

Did this idea of an "Add to Cart" or "Download via ZIP" permission make it much farther? Just curious.