coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 permissions => Topic started by: christfort on July 05, 2011, 03:59:30 PM

Title: Enable non administrator to edit file info
Post by: christfort on July 05, 2011, 03:59:30 PM
Hi,

Is it possible to create a group of users that are allowed to edit file info? Apparently only administrators can do this. What I want to achieve is, to be able to grant a group of users access to edit file info on files in all albums that they are permitted to upload into.

Regards,
Thomas Christfort



Title: Re: Enable non administrator to edit file info
Post by: christfort on July 05, 2011, 10:33:00 PM
I read the post:

        Is it possible to give some users the rights to only edit tags in albums ?

And used this approach to grant all registered users the right to edit file info. However in file editpics.php where I modify to: " WHERE p.aid = '$album_id'" . is it possible to restrict this access to one new created group instead of all registered users?

Thomas


Title: Re: Enable non administrator to edit file info
Post by: ΑndrĂ© on July 14, 2011, 09:22:39 AM
Quote from: christfort on July 05, 2011, 10:33:00 PM
I read the post:

        Is it possible to give some users the rights to only edit tags in albums ?
-> http://forum.coppermine-gallery.net/index.php/topic,67601.0.html


Quote from: christfort on July 05, 2011, 10:33:00 PM
is it possible to restrict this access to one new created group instead of all registered users?
Try to replace
" WHERE p.aid = '$album_id' $owner_str" .
with
" WHERE p.aid = '$album_id' AND owner_id IN (SELECT user_id FROM {$CONFIG['TABLE_USERS']} WHERE user_group = '123456')" .
in the unmodified editpics.php file (untested).