How to set default permissions for new users / groups ?

Cescone

Joined: 2012-05-04
Posts: 2
Posted: Fri, 2012-05-04 20:03

I guess I'm not the first person to ask you this question. It's about how to set default permission for the new groups, but since English is not my native language and I'm not sure I will be clear enough in my explanation let me introduce my problem first:

I have a customer. He's a wedding photographer, and he wants to use gallery3 as a tool for letting his customers to see the wedding photos from his website anytime; for obvious reasons, only a selection of people choosen by the groom and the bride will be able to see the photo album of their weddings, and for no reason they should be allowed to see the wedding photos of an another couple.
For each wedding he will create:

* one photo album (ex: album1)
* one or more users with a specific password (ex: user1 / pass1)
* one group (ex: group1)

then he will grant permission of a single album to a single group, so only that group will be able to access a specific album (ex: group1 will be able to access album1, but not album2, album3 or album4).

So far, I managed to make Gallery3 working this way, but of course now I have a problem: when I create a new group, that new group by default can have access to all the photo albums. For example if I already have "album1" and "user1/group1", when I create "album2" and "user2/group2", every user that is member of "group2" by default can access "album2" as well as "album1" so every time I'm forced to manually deny the access; the problem is that the photographer plans to host up to 100-200 private albums, and I can manually deny access to 199 groups on each of those 199 albums.

I need a solution to tell Gallery3 something like this: "Ok, when I create a new group I want you to deny access by default to every photo album. Later I will manually enable this particular group to access some albums."

Is that possible ?

Thank you and best regards

 
Archivist

Joined: 2012-05-19
Posts: 2
Posted: Sat, 2012-05-19 04:43

I also hate this. I have the exact same needs and issue with Gallery.

 
DennyWR

Joined: 2012-09-07
Posts: 1
Posted: Fri, 2012-09-07 16:59

So, how do I fix this ? Which file, or ? do I edit, or change the permissions to ?

 
MichaelToGo

Joined: 2012-10-14
Posts: 2
Posted: Sun, 2012-10-14 20:01

Hello everyone,

has any of you found a solution to this?

Thank you!

 
Cescone

Joined: 2012-05-04
Posts: 2
Posted: Mon, 2012-10-15 16:26

Nope.

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2012-10-16 12:45

Basically, no one has written code for this to happen. Gallery2's permissions are more extensive and may be better if you have an immediate need.

Otherwise, you can look at the albumpassword module for G3.
http://codex.gallery2.org/Gallery3:Modules:albumpassword

 
MichaelToGo

Joined: 2012-10-14
Posts: 2
Posted: Tue, 2012-10-16 14:06

Thanks for your comments.

Well, going back to gallery2 would make me feel kind of un-modernist ;) I had already tried albumpasswords some weeks ago. But it did not like it for some reasons I have forgotten.

Apart from the problem that in g3 newly added groups have by default access to all albums, there is something else about g3's permissions-philosophy I do not understand: As far as I know g3 is targetting at private users. Then why are groups an essential entity of g3 permissions system? I personally do not put my friends and family into groups. I rather communicate with them individually. Thus I'd like to decide person by person (say account by account) who is looking into certain albums.

In order to circumvent this shortcoming, I am adding a new group whenever a new album is created and give the same name to both. In the next step I can drag & drop-assign which individuals are permitted to look into that album. But this brings me back to the beginning: It's annoying in every way that new groups can access all albums... :)

Offtopic: Has anyone experience with Zenphoto? I just tested it, found it's back-end too bloated and deleted it again from my server. Or is it worth a second try?

Thanks!

Michael

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Tue, 2012-10-16 14:38
tempg wrote:
Gallery2's permissions are more extensive and may be better if you have an immediate need.

 
ottokar

Joined: 2012-08-29
Posts: 1
Posted: Sun, 2012-11-11 16:18

Hallo,

I have upgraded to gallery3 from gallery2. Everything worked fine - I like the iPad app :-) . I have an issue with the permissions, though. I hadn't realised that it is not possible to make a single album visible to a group without having to create the new group, bar them from seeing all albums (by clicking on every album) except the one they are supposed to see.

Or am I mistaken?

I feel this is not very clearly described here
http://codex.gallery2.org/Gallery3:About
"You can only set permissions at the album level."
That would be fine for me, but it's very impractical at the moment. Creating the new group and then removing the permissions for all albums except one. "Deny access by default" as suggested by Cescone would be perfect.

I haven't tried the albumpassword module, since it says the thumbnails are still visible in searches etc.

I don't want to revert back to gallery2 since I like the iPad app and more development seems to be going on for gallery3.

Kind regards

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Sun, 2012-11-11 17:33

@ottokar:
Short answer: It's in the works: http://sourceforge.net/apps/trac/gallery/ticket/1346

The permissions dialog usability module should at least make it a bit easier to manage.
http://codex.gallery2.org/Gallery3:Modules:permissions_dialog_usability