aboutsummaryrefslogtreecommitdiff
path: root/settings/user/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/user/index.php')
-rw-r--r--settings/user/index.php6
1 files changed, 5 insertions, 1 deletions
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(