Request: Album view by explict rights only. (View once/View updates)

SuicideDog

Joined: 2006-01-10
Posts: 35
Posted: Thu, 2006-01-12 21:04

Explanation:

If I have the following albums with the following permissions:

Album1:
Everyone
Update_Group1
Admin

Album2:
User1
Update_Group2
Admin

Album2/Picture 1:
User1
Update_Group2
Admin

Can I have a view that will only display and item if a user is a member of any updateXXXX group AND has rights via any other group/user?.. Basically give me an option of setting permissions with an AND operator in stead of just the OR.

Reason:

View once permissions (specifically so a user can click on a "View updated items only" button.

Proposed affect:

User logs into site and clicks on view updated items only .. then is presented with the same view except they now can only see items where they belong to a group that is prefixed with something like "update".

Once the user has viewed the picture, that user is then removed from the updateXXXXX group for that item and can no longer see the item while in the "View updated items only". Once the user is no longer a member of any of the updateXXXXX groups for any items in a album or sub-album then they are also removed from the albums updateXXXX group.

Seems kinda weird but I think about the only other option is to set a flag on each user for each item in the database. That can get ugly on sites with huge amount of pictures and users.

If done the way I propose we can use the existing permissions API's and user management API's with some modification of the view functions.

Suggestions:

If anyone else has a better way of doing a "View updates only" mode that would be great. Obviously it would be great if it could use all the API's developed by the developers.

Let me know.

 
SuicideDog

Joined: 2006-01-10
Posts: 35
Posted: Fri, 2006-01-13 18:20

Anyone have comments on this? Anyone know if you can ever set a AND operator for permissions?

I know they already have a guest view/admin view function. I beleive all that means is they pass the guest account for the views. Maybe something using that could be used.

I notice a big flaw in my solution last night. I would need to make a group for every item in the gallery in order for it to work correctly. I don't think that will work. I don't know if it would be any more efficient to have an update group for each item and then have users in those groups or just set a flag on every item for every user.

I don't even know how much horse power it would take to even query all those groups. There has got to be a better way.

Since last login search would be great but yet retain the look and feel of the normal layout. I going to have to look at the search module.

Any help would be great.