Skip to content

Commit

Permalink
merge r22978 from branch 2.5 to trunk
Browse files Browse the repository at this point in the history
bug 2915 fixed: really disable synchronization on synchronization and site (directories) manager screens.



git-svn-id: http://piwigo.org/svn/trunk@22979 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed May 31, 2013
1 parent c8d5ad2 commit eb002c4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/site_manager.php
Expand Up @@ -31,6 +31,12 @@
// +-----------------------------------------------------------------------+
// | 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']))
Expand Down
6 changes: 6 additions & 0 deletions admin/site_update.php
Expand Up @@ -31,6 +31,12 @@
// +-----------------------------------------------------------------------+
// | 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']))
Expand Down

0 comments on commit eb002c4

Please sign in to comment.