mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
Resolved issue 0000697: with generic user a author name is necessary to comment picture.
+ Change way to determinate if user is a guest (use functions like is_admin) git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -574,7 +574,7 @@ function access_denied()
|
||||
get_root_url().'identification.php?redirect='
|
||||
.urlencode(urlencode($_SERVER['REQUEST_URI']));
|
||||
|
||||
if ( isset($user['is_the_guest']) and !$user['is_the_guest'] )
|
||||
if ( isset($user) and !is_a_guest() )
|
||||
{
|
||||
echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />';
|
||||
echo '<a href="'.get_root_url().'identification.php">'.$lang['identification'].'</a> ';
|
||||
|
||||
Reference in New Issue
Block a user