User Groups

ockabewis

Joined: 2004-08-20
Posts: 6
Posted: Fri, 2004-08-20 04:41

Can user group functionality be added? It would be nice to be able to create groups, then assign users to those groups. That way I could base the permissions by groups instead of by users.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2004-08-20 06:07

someone just did a groups hack for gallery 1.x (posted on the devel mailinglist). couldn't find it with the search engine, but it exists.

 
ockabewis

Joined: 2004-08-20
Posts: 6
Posted: Fri, 2004-08-20 08:49

If anybody finds it, please post it here. In the meantime, the questions remains; is this a planned addition to the next release of Gallery? Seems like it would be something that most people could use.

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-08-20 08:50

I don't believe that this is currently on the task list.

This is already supported in G2.

 
Fused

Joined: 2004-04-25
Posts: 3
Posted: Sun, 2004-08-22 05:04

i just came here to sugegst this same thing, I NEEED GROUPS to prevent having to set 20-30 users individually per album ...

 
Terje-
Terje-'s picture

Joined: 2004-01-20
Posts: 90
Posted: Thu, 2004-08-26 09:38

Being able to do recursive permissions should be a higher priority.. :-)

 
robert070612

Joined: 2003-08-05
Posts: 565
Posted: Thu, 2004-08-26 11:46
Fused wrote:
i just came here to sugegst this same thing, I NEEED GROUPS to prevent having to set 20-30 users individually per album ...

Fused... you already possess this functionality!
It just requires a little organisation.
• add nested album off main gallery - call it GROUP30
• give it the required OWNER
• amend its PERMISSIONS to include your 30 users
All subsequent GROUP30 nested subalbums inherit its permissions.
...Job Done;~)

best wishes, Robert

 
Dejas

Joined: 2002-11-11
Posts: 21
Posted: Sun, 2004-08-29 04:09

The patch has been posted on the patches area of the gallery source forge page. I am unsure though of how to apply the patch. Anyone know? The file itself looks like a php script, but I am unsure of which file to replace with the patched file.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2004-08-29 19:04

You usually apply a "patch" file using the ... patch command :)

Typically you do "patch -p0 < nameofpatchfile" (sometimes you need to alter the number in the -p part depending on where you are and what the patch expects).

If it doesnt go in cleanly (ie, it asks you some questions) just ctrl-c and start over with a different number like "-p1" or "-p2".

Edit: Oops, its -p not -n :)

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Sun, 2004-08-29 19:09

It's "-p" not "-n"

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sun, 2004-08-29 19:11

Ooops, thanks :) I'll edit my post.

 
tunaman

Joined: 2004-01-31
Posts: 2
Posted: Thu, 2004-09-16 17:17

I only have FTP access to my web server. Is it possible to patch a gallery installation without having shell access?

 
Haplo
Haplo's picture

Joined: 2004-03-29
Posts: 82
Posted: Wed, 2004-09-22 19:34

permissions need a rewrite...thats for sure

...especially when integrating gallery with any forum package with thousands of users ;)

 
bl00mie

Joined: 2004-09-28
Posts: 2
Posted: Tue, 2004-09-28 17:25

has anyone gotten groups to work for 1.4.4-pl2??? i applied the patch.

i can create groups.
i can modify groups.
i can delete groups.
i can assign permissions based on group....

but i can't add users to groups. the "Group" button on the manage-users form doesn't seem to do anything. i click it and literally nothing happens (unless i have no user selected, at which point it tells me i have to have a user selected first)

the patch was applied and worked with no errors or rejections.

am i missing something easy? or does the patch not quite work? i read through the source that the form calls (manage_users.php, i think), and didn't see an intry for intelligence if modify=Modify is submitted. maybe the patch is missing something?

 
bl00mie

Joined: 2004-09-28
Posts: 2
Posted: Tue, 2004-09-28 17:56

To fix, you just need to open up manage_users.php and at the end of this section:

if ( (isset($modify) || isset($delete) || isset($groups)) && ! isset($uname)) {
        $error=_("Please select a user");
} elseif (isset($modify)) {
        header("Location: " . makeGalleryHeaderUrl("modify_user.php", array("uname" => $uname)));
} elseif (isset($delete)) {
        header("Location: " . makeGalleryHeaderUrl("delete_user.php", array("uname" => $uname)));
}

add:

elseif (isset($groups)) {
        header("Location: ". makeGalleryHeaderUrl("user_groups.php", array("uname"=>$uname)));
 
fay

Joined: 2003-01-08
Posts: 16
Posted: Thu, 2004-10-07 11:26
bl00mie wrote:
has anyone gotten groups to work for 1.4.4-pl2??? i applied the patch.

sorry to ask, which ptch you have applyed? can post the download link. i've browse download link but not sure which one is the patch?

please and thanks

 
wijkkie

Joined: 2005-08-03
Posts: 78
Posted: Sat, 2006-12-30 23:25

I'm looking for the patch to add user groups to 1.5.5, wgere can i find this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-12-31 00:57

user groups have been officially added in gallery 1.6, which is still in alpha (don't use this version on your website). some time next year, 1.6 will be officially released.

 
wijkkie

Joined: 2005-08-03
Posts: 78
Posted: Mon, 2007-01-01 16:51

oke! thanks.

then I'll just have to wait for it! Thanks