From: Bharat M. <bh...@us...> - 2001-07-19 08:26:33
|
Update of /cvsroot/gallery/gallery In directory usw-pr-cvs1:/tmp/cvs-serv21155 Modified Files: upgrade_album.php Log Message: Fixed a bug where only admins could do upgrades. Now if you're not an admin you can only upgrade the album you're looking at. Index: upgrade_album.php =================================================================== RCS file: /cvsroot/gallery/gallery/upgrade_album.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- upgrade_album.php 2001/07/19 08:23:11 1.2 +++ upgrade_album.php 2001/07/19 08:26:31 1.3 @@ -36,9 +36,12 @@ if (!$gallery->version) { require($GALLERY_BASEDIR . "init.php"); } ?> <? -// Hack check +/* + * If we're not the admin, we can only upgrade the album that we're + * looking at. + */ if (!$gallery->user->isAdmin()) { - exit; + $upgrade_albumname = $gallery->session->albumName; } function close_button() { |