Member
Member
retrosaint   2008-08-26, 14:35
#1

Hi

Does anyone know how to remove authentication in zenPhoto - i have a controlled environment and would like any user on the site (zenPhoto) to upload or edit images.

I did find this - http://www.zenphoto.org/support/topic.php?id=1373#post-7898 but the line numbers don't match (must be a older version they referring to). So if anyone knows how to remove authentication on zenPhoto version 1.2 [2213] than please drop me a line.

much appreciated
chris

BTW - zenPhoto is awesome, nice work guys.

Member
Member
sbillard   2008-08-26, 18:22
#2

in functions.php there is a functon called checkAuthorization().

towards the beginning of that function there is a line that reads:
$admins = getAdministrators();
insert after that line
$_zp_current_admin = $admins[0]; return $_zp_current_admin['rights'];

This assumes that you have created an admin user.

Member
Member
retrosaint   2008-08-28, 09:47
#3

Hi sbillard

Thanks for response - worked like a charm!

peace
Chris

Member
Member
sbillard   2008-08-28, 21:50
#4

You might want to consider that it will be easier on you in the long run to create a user/password for your people. Once they login, the credentials will be saved in a cookie, so they need login only once.

Additionally, even though I am sure you trust everyone, you might prefer to reserve the User admin rights for yourself. Give the others only the rights they need.

Finally, of course, if you assign user/passwords you won't have to remember to make that change every time you update zenphoto.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.