From 37bb1997b95cab1dd6dbda975d4ad5120a2ba72a Mon Sep 17 00:00:00 2001 From: ben Date: Mon, 4 Aug 2008 17:42:49 +0000 Subject: User changes to settings git-svn-id: https://code.elgg.org/elgg/trunk@1690 36083f99-b078-4883-b0ff-0f9b5a30f544 --- settings/user/index.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'settings/user') diff --git a/settings/user/index.php b/settings/user/index.php index b86181308..35b3eed5d 100644 --- a/settings/user/index.php +++ b/settings/user/index.php @@ -15,7 +15,11 @@ // Make sure only valid admin users can see this gatekeeper(); - + + // Make sure we don't open a security hole ... + if (!page_owner_entity()->canEdit()) { + set_page_owner($_SESSION['guid']); + } // Display main admin menu page_draw( -- cgit v1.2.3