diff options
| author | fisharebest <fisharebest@gmail.com> | 2012-09-15 19:38:41 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2012-09-15 19:38:41 +0000 |
| commit | e58c701c35f32fe75e02b7938a94f937ec901275 (patch) | |
| tree | 70d2d82596a4f3775fc8af193f9285ef0a5d2487 /index_edit.php | |
| parent | 5723e94368eb185b1e041de97fc6b16353e9d38f (diff) | |
| download | webtrees-e58c701c35f32fe75e02b7938a94f937ec901275.tar.gz webtrees-e58c701c35f32fe75e02b7938a94f937ec901275.tar.bz2 webtrees-e58c701c35f32fe75e02b7938a94f937ec901275.zip | |
Fix: cannot update default gedcom blocks with new WT_Tree code
Diffstat (limited to 'index_edit.php')
| -rw-r--r-- | index_edit.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/index_edit.php b/index_edit.php index 84c46ebd9c..4ac8bff481 100644 --- a/index_edit.php +++ b/index_edit.php @@ -36,10 +36,12 @@ if ($user_id) { $gedcom_id=safe_REQUEST($_REQUEST, 'gedcom_id'); } +// Only an admin can edit the "default" page // Only managers can edit the "home page" // Only a user or an admin can edit a user's "my page" if ( - $gedcom_id && !userGedcomAdmin(WT_USER_ID, $gedcom_id) || + $gedcom_id<0 && !WT_USER_IS_ADMIN || + $gedcom_id>0 && !userGedcomAdmin(WT_USER_ID, $gedcom_id) || $user_id && WT_USER_ID!=$user_id && !WT_USER_IS_ADMIN ) { $controller->pageHeader(); |
