diff options
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(); |
