Allow user to edit and delete their own pics

dudo

Joined: 2012-09-10
Posts: 7
Posted: Wed, 2012-09-19 17:24

is it possible? I'd like that user can edit just their own pics (and not someone else's ones)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2012-09-19 18:35

Give them each their own album to which they have full rights.
http://codex.gallery2.org/Gallery3:Modules:user_homes

-s
All New jQuery Minislideshow for G2/G3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-09-19 19:07

For speed, code complexity, upgrade-ability and other considerations, we went with a per album permissions approach and not a per item.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dudo

Joined: 2012-09-10
Posts: 7
Posted: Thu, 2012-09-20 09:26

Thank you for your answers.
This is a stub of my website, http://passionetreni.it , since it is not possible allow users to edit/delete just their pics, i'd like that users can upload, edit and remove every pics (not just their own), but I won't allow them to organize/edit album (I would like to hide "album options").

Can i do it?

Best Regards,
Dario

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-09-20 14:55
Quote:
(I would like to hide "album options").

see if adding this:

	<script type="text/javascript">
      $(document).ready(function(){
	    $('li > a:contains("<?= t('Album options') ?>")').remove();  //removes the top menu action
		$('li > a:contains("<?= t('Organize album') ?>")').remove();  //remove the action from under the albums thumb 
		$('li > a:contains("<?= t('Edit this album') ?>")').remove();  // removes the action from under the albums thumb
      });
    </script>

to the bottom of the page.html.php of your theme does as expected and report back.
If it works as expected I can add it to the remove actions module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
dudo

Joined: 2012-09-10
Posts: 7
Posted: Thu, 2012-09-20 16:27
Quote:
If it works as expected I can add it to the remove actions module.

It worked like a charm!

 
alloyphoto1
alloyphoto1's picture

Joined: 2011-05-13
Posts: 7
Posted: Thu, 2012-09-27 14:54

The problem I am seeing with permission is that album owners have no implicit access to their own albums.
If you want to have multiple users, each having "edit" access to their own album and nobody's else you have to create an individual group for EVERY user, and then explicitly grant "edit" / "add" permissions to each user's home album.

Isn't this kind of backwards? Shouldn't albums owners have default rights to modify their own albums? Or, at the very least, shouldn't there be an option to grant the owner permissions without having to create an extra group? I think this severely impedes the ability to use the Gallery in a real multiuser environment. What do you think?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2012-09-28 02:36

Yes we think that permissions should be improved but time resources and skills are at a premium so groups is the way to go at this time.
Have you tried G2?

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
alloyphoto1
alloyphoto1's picture

Joined: 2011-05-13
Posts: 7
Posted: Fri, 2012-09-28 03:10

I focus on G3 because it provides a decent REST API, and I use it to integrate with my Lightroom plugin (http://alloyphoto.com/plugins/gallery/). Using this plugin Lightroom users can manage their albums and photos directly from Lightroom, which many find a great convenience and a time saver.
Frequently enough my clients ask me for a more secure and more convenient way to manage albums in a multi-user environment, but this issue with owner permissions becomes a hassle for the administrator (too many steps to set up every user).

Oh well, I hope one day you'll find time to implement all feature requests :)

Thanks!

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Thu, 2013-08-29 14:52

Dear alloyphoto and All, that´s the point i saw there, to create a new group for every user.... a lot steps...

Does have a solution for this??

Thanks and Regards,

Tony

alloyphoto1 wrote:
The problem I am seeing with permission is that album owners have no implicit access to their own albums.
If you want to have multiple users, each having "edit" access to their own album and nobody's else you have to create an individual group for EVERY user, and then explicitly grant "edit" / "add" permissions to each user's home album.

Isn't this kind of backwards? Shouldn't albums owners have default rights to modify their own albums? Or, at the very least, shouldn't there be an option to grant the owner permissions without having to create an extra group? I think this severely impedes the ability to use the Gallery in a real multiuser environment. What do you think?