I would like to limit the automatic creation of users within gallery2 to users assigned to a certain ROLE from the 'access control'.

More importantly, I would like for the album to be created when the user is ADDED to the role and deleted if they are REMOVED from the role. I'm not sure if that is possible yet within drupal due to my limited experience with the codebase.

Comments

kiz_0987’s picture

Status: Active » Fixed

The latest CVS has gallery access control. The user would still be created in Gallery2 but you can restrict which roles are able to access the gallery. This should provide what you want.

michelle’s picture

I haven't had a chance to look at your changes to the module but, based on your comment, I don't think you understood the request. Gallery has a plugin called "user album" where the user can click a link and it will create an album and make them the owner with all the permissions.

In my case, as with the original poster, I only wanted a certain role to be able to do this. I ended up hiding the link from within G2 and putting the link on a restricted node in Drupal. It would be lovely to be able to say instead that only role X can create a user album. Unfortunately, I don't think that's possible due to G2's limitation. AFAIK, there is no way within G2 itself to define who can and cannot create a user album. They're either on or not and, if on, all registered users have access. Please correct me if I'm wrong on that.

Michelle

kiz_0987’s picture

OK, I understand your request. However, this is really a user album module feature request rather than an integration module request (passing the buck here). Maybe you could add a feature request onto the Gallery2 User Album module for group/role permissions.

michelle’s picture

kiz_0987’s picture

My vote is now in. Thanks Michelle.

kiz_0987’s picture

Status: Fixed » Postponed
plan9’s picture

Component: Code » Miscellaneous

I realise this is an ancient thread, but if anyone is interested...
There is now a Gallery 2.3 hack that appears to achieves this. I haven't tested it yet - but presumably if the same role exists in Drupal and users are synced properly it should work.

http://gallery.menalto.com/node/83743

michelle’s picture

Nice... I'm still interested but I really would rather not hack core. :( I think I'll hold off and see if G3 brings the feature.

Thanks,

Michelle