Welcome to Geeklog Saturday, November 27 2021 @ 12:37 am EST

Geeklog Forums

Gallery permissions


Status: offline

jonc

Forum User
Chatty
Registered: 12/09/04
Posts: 50
Same problem... Newer versions.

I am using GL1.3.9sr1 and Gallery 1.4.4. Requires no additional integration tool as they are now built in. However I am running into the same problem as a lot of other posts, Logged In Users cannot upload pictures, start albums, etc. Only the admin can. I cannot find any permissions setup for this, so can anyone help me???

www.rivercommunitychurch.net
 Quote

Status: offline

jonc

Forum User
Chatty
Registered: 12/09/04
Posts: 50
if someone's trying to look at this, feel free to use

Username: testuser
Password: testuser

I'll disable this once I slove it.
 Quote

Status: offline

NeoNecro

Forum User
Regular Poster
Registered: 07/02/04
Posts: 90
I don't know if you can give users the premission to create new albums in your main album.

What you can do is creating a new album and then give youre users (or a group) premissions to add pictures, create sub-albums, etc. in this album.

grtz
dimis-site.be
 Quote

Paradigm

Anonymous
Yes you can do this.

go to your gallery/classes/geeklog/User.php. Open it up and find this part in the file: loadByUserName($uname) (NOT in loadByUID($uid))

look for
PHP Formatted Code
$this->canCreateAlbums = $this->canCreateAlbums();
 


and change to
PHP Formatted Code
#   $this->canCreateAlbums = $this->canCreateAlbums();
  $this->canCreateAlbums = SEC_inGroup('Gallery Admin', $this->uid);
 


leave the # in.

where "Gallery Admin" is the name of the group, and then anyone in the group can create (and thereby own) a new album.
Hope that helps.

ps not my code, just found it somewhere
 Quote

Status: offline

jonc

Forum User
Chatty
Registered: 12/09/04
Posts: 50
sweet. That was an easy fix. (as long as you know what to do.)

Obviously I had to create a group 'Gallery Admin', but that is actually good for giving out permissions in this website.

Thanks
 Quote

Status: offline

NeoNecro

Forum User
Regular Poster
Registered: 07/02/04
Posts: 90
@Paradigm
Thats a good solution! I never looked for that, because I have no need for it (at this time). It is probably best if you use Paradigm's way.

grtz
dimis-site.be
 Quote

Status: offline

arthur

Forum User
Junior
Registered: 10/10/03
Posts: 34
That user.php fix worked for me. Thank you so much. I had been very disappointed that my users couldn't create their own galleries. Now they can!
Arthur (http://www.shrednow.com)
 Quote

All times are EST. The time is now 12:37 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content