diff options
| author | fisharebest <fisharebest@gmail.com> | 2011-01-04 15:56:28 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2011-01-04 15:56:28 +0000 |
| commit | 8195185fde6994fd2322694cb2751399c77b2514 (patch) | |
| tree | f287de4ba98f7df3bffa9a79fb96bdb6965218cf /admin_site_logs.php | |
| parent | 7aec9e6753c381bbc83d96ca56d4558ede73dd3c (diff) | |
| download | webtrees-8195185fde6994fd2322694cb2751399c77b2514.tar.gz webtrees-8195185fde6994fd2322694cb2751399c77b2514.tar.bz2 webtrees-8195185fde6994fd2322694cb2751399c77b2514.zip | |
Fix: no login link when going straight to an admin page
Diffstat (limited to 'admin_site_logs.php')
| -rw-r--r-- | admin_site_logs.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/admin_site_logs.php b/admin_site_logs.php index c617459a50..e22dbee50b 100644 --- a/admin_site_logs.php +++ b/admin_site_logs.php @@ -29,8 +29,9 @@ define('WT_SCRIPT_NAME', 'admin_site_logs.php'); require './includes/session.php'; require WT_ROOT.'includes/functions/functions_edit.php'; -// Only admin users can access this page +// Only managers can access this page if (!WT_USER_GEDCOM_ADMIN) { + // TODO: Check if we are a manager in *any* gedcom, not just the current one header('Location: '.WT_SERVER_NAME.WT_SCRIPT_PATH.'login.php?url='.WT_SCRIPT_NAME); exit; } |
