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
Posts: 37
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"
Posts: 37
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.
Posts: 8601
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.
Posts: 37
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.
Posts: 7994
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...
Posts: 37
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
Posts: 8601
someone wrote and posted a module to do something like this.. search the forums..