Permissions - I'm lost

zelf

Joined: 2005-03-07
Posts: 37
Posted: Mon, 2005-03-07 22:00

I've searched, but not found an answer. I just download and installed g2 today. It's awesome with all the new features.

However, I'm a bit baffled by the setting of user permissions per album. In g1 it seemed pretty simple. You selected from the menu on the left users who could view the album.

Well, in g2 I have created an album and uploaded pictures to it and then created a new user. I then went to edit the permissions on the album. At the bottom of the edit screen for the album in question I entered the new user's name and then selected All Access from the drop down menu. My particular setup requires each album to have one user with access and then all admins have access to all albums. Only admins can upload pictures. User can only view albums they have been given permission to.

Anyway, I logged in using the new user's user/pass and the login was successfull, but there are no pictures. I can click on User Setting like change password on the left, but no pictures or navigation to pictures.

I'm sure it's something simple. Any help much apperciated.

----

Gallery version: Latest G2 Beta
Webserver Apache 1.3x:
Datatabase MySQL 4.0x:
PHP version php 4.3.10:
Graphics Toolkit(s): All of them
Operating system: MAC OS X 10.3.8
Web browser/version: Firefox 1.01

 
zelf

Joined: 2005-03-07
Posts: 37
Posted: Mon, 2005-03-07 22:27

I tried using the Users Module. A new album is created, but when I go to log in to this new users account I get:

" Error (ERROR_PERMISSION_DENIED) :

* in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 68 (gallerystatus::error)
* in modules/core/classes/GalleryCoreApi.class at line 373 (galleryuserhelper_simple::asserthasitempermission)
* in modules/core/classes/helpers/GalleryItemHelper_advanced.class at line 643 (gallerycoreapi::asserthasitempermission)
* in modules/core/classes/GalleryCoreApi.class at line 1450 (galleryitemhelper_advanced::fetchalbumtree)
* in modules/albumselect/module.inc at line 96 (gallerycoreapi::fetchalbumtree)
* in modules/core/classes/GalleryLayout.class at line 711 (albumselectmodule::loadsystemcontent)
* in layouts/matrix/layout.inc at line 263 (matrixlayout::loadlayouttemplate)
* in layouts/matrix/layout.inc at line 155 (matrixlayout::_loadalbumtemplate)
* in modules/core/ShowItem.inc at line 136 (matrixlayout::loadtemplate)
* in modules/core/classes/GalleryView.class at line 246 (showitemview::loadtemplate)
* in main.php at line 286 (showitemview::doloadtemplate)
* in main.php at line 46
* in main.php at line 39"

 
zelf

Joined: 2005-03-07
Posts: 37
Posted: Mon, 2005-03-07 23:27

With the users module activated and "jump to album after login" checked. I get the Error. If it is not checked I get no error and just cannot see any album pics.

This is pretty fun responding to myself, but if anyone has any clues I would appreciate it.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Mon, 2005-03-07 23:47

check the permissions on your root album and user albums using "edit permissions".. if you can post the steps to reproduce the error from a clean install that would help.

 
zelf

Joined: 2005-03-07
Posts: 37
Posted: Tue, 2005-03-08 00:02

I changed the root of the "Gallery" permissions to "All Users" can "View Item". Now users can log in and it takes them to their respective Album.

Is this the correct setting for the root Gallery based on my scenario:

Admins create albums for users.
Admins create user accounts.
Admins set permissions for which users can access albums.

User cannot create galleries.
User cannot do anything, but view photos in albums they have permission to.

In g1 this was pretty straightforward for my type of setup. No so straightforward now. I realize this is a beta though.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2005-03-11 04:05

That looks like the right permission set. G2's permissions are much finer grained than G1 which means they're more powerful, but it's harder to make a good UI. We're still working on the UI...

 
zelf

Joined: 2005-03-07
Posts: 37
Posted: Fri, 2005-03-11 04:22

It's working fantastic! Thanks for the response. One more question.

Can default permissions on newly created albums be modified? Currently a newly created album using the Users Module to create albums when a user is created gives the album user "All Access"

I would like by default for the user to be given these permissions:

[core] View all versions
[comment] All access
[comment] Search comments

Thanks

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-11 04:38

someone wrote and posted a module to do something like this.. search the forums..