Nice job on 4.7, thanks to all. Anyway, I'm looking for a way for each user on a site to be able to create their own galleries. I want them to be able to delete/add/edit images in their own galleries, but only view others. Basically, anonymous can view the galleries. But to add images, I want to restrict that to the creator of the gallery. So, each user can create galleries at will with permissions to do whatever.

It would also be ok (but less cool) to have the admin pre-create a gallery for each new user and assign privs to make all of this happen.

I've been trying to do all of this with various access control mods (simple access, taxonomy etc.) with no success. I could make each user have their own role, but this doesn't scale well and would make my site manager's eyes cross. So, any suggestions are greatly appreciated.

Comments

CdnStrangequark’s picture

This is exactly what I want to be able to do too... Sort of like an image-blog for each user.

johnogg’s picture

I don't think there is a way to do this. You will need to roll up your sleeves and either (A) write your own access control module or (B) modify your gallery module to deny delete/add/edit acess to users other than the creator of a given gallery.

B is probably the easier approach. Can someone with more Drupal programming experience chime in?

gatesession’s picture

Are you using the gallery plug-in?

CdnStrangequark’s picture

Do you mean the "Image Gallery"? Yes... I am, though I can't speak for the original poster.

chrisschaub’s picture

No, just straight image with the assist module. I didn't want to get into the user sync issues. I guess I'll write the module, no problem. It needs to be done. Actually, it should be supported since everything is a node and node_access seems pretty straightforward. It might just be a matter of auto-creating the permissions whenever a gallery is created. Also cleaning up when the gallery is deleted. I'll dig in and see how it goes. Any suggestions are appreciated.

- Chris