Photo Permissions

TransportImages
TransportImages's picture

Joined: 2005-08-28
Posts: 9
Posted: Sun, 2005-08-28 01:42

Hi

I have just installed G2 (gallery-2.0-rc-2-full.tar.gz) and it looks very good. I have however run into a problem.

I have setup gallery so all albums are owned by ‘admin’ but individual photos are owned by individual users.

The user in question can edit their photo – ok.

The problem is that under actions this user has links to be able to ‘Make Highlight’ and ‘Move Photo’. Because they don’t own any albums, they get an error message.

When ‘Make Highlight’ is clicked:

Error (ERROR_PERMISSION_DENIED) : 
in modules/core/classes/helpers/GalleryUserHelper_simple.class at line 67 (gallerystatus::error) 
in modules/core/classes/GalleryCoreApi.class at line 434 (galleryuserhelper_simple::asserthasitempermission) 
in modules/core/ItemMakeHighlight.inc at line 93 (gallerycoreapi::asserthasitempermission) 
in modules/core/ItemAdmin.inc at line 147 (itemmakehighlightview::loadtemplate) 
in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate) 
in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate) 
in main.php at line 286 (itemadminview::doloadtemplate) 
in main.php at line 87
in main.php at line 80

When 'Move Photo’ is clicked:

Error (ERROR_BAD_PARAMETER) : 
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 50 (gallerystatus::error) 
in modules/core/classes/GalleryCoreApi.class at line 2173 (galleryentityhelper_simple::loadentitiesbyid) 
in modules/core/ItemMove.inc at line 364 (gallerycoreapi::loadentitiesbyid) 
in modules/core/ItemAdmin.inc at line 147 (itemmoveview::loadtemplate) 
in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate) 
in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate) 
in main.php at line 286 (itemadminview::doloadtemplate) 
in main.php at line 87
in main.php at line 80

Any chance of these links being removed?

I have searched the gallery site and can't see anyone else reporting these problems?

Many thanks

Keith

----

Gallery URL (optional):
Gallery version: gallery-2.0-rc-2-full.tar.gz
Webserver (with version):
Datatabase (with version): MySQL version 4.0.25-standard
PHP version (eg 4.2.1): 4.3.10
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: Apache version 1.3.33 (Unix)
Web browser/version: IE 6.0
G1 version (for migration bugs):