mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens.
git-svn-id: http://piwigo.org/svn/branches/2.5@22978 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -31,6 +31,12 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Check Access and exit when user status is not ok |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
if (!$conf['enable_synchronization'])
|
||||
{
|
||||
die('synchronization is disabled');
|
||||
}
|
||||
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
if (!empty($_POST) or isset($_GET['action']))
|
||||
|
||||
@@ -31,6 +31,12 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | Check Access and exit when user status is not ok |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
if (!$conf['enable_synchronization'])
|
||||
{
|
||||
die('synchronization is disabled');
|
||||
}
|
||||
|
||||
check_status(ACCESS_ADMINISTRATOR);
|
||||
|
||||
if (!is_numeric($_GET['site']))
|
||||
|
||||
Reference in New Issue
Block a user