mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
- User control panel update (user side)
- User control panel update (admin side) - Add of registration link on the main page - Minor bug correction for group management git-svn-id: http://piwigo.org/svn/trunk@631 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -156,13 +156,13 @@ function update_user( $user_id, $mail_address, $status,
|
||||
return $error;
|
||||
}
|
||||
|
||||
function check_login_authorization()
|
||||
function check_login_authorization($guest_allowed = true)
|
||||
{
|
||||
global $user,$lang,$conf,$page;
|
||||
|
||||
if ( $user['is_the_guest'])
|
||||
{
|
||||
if ( $conf['access'] == 'restricted' || (isset($page['cat']) && $page['cat'] == 'fav' ) )
|
||||
if ( $conf['access'] == 'restricted' || !$guest_allowed )
|
||||
{
|
||||
echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
|
||||
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
|
||||
|
||||
Reference in New Issue
Block a user