From f49fdf4e1c80fe5bde922c25bdd6ca0e2c912ddb Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 21:32:54 +0000 Subject: Refs #2124: Using get_loggedin_user functions instead of $vars['user'], $_SESSION['user'], etc. git-svn-id: http://code.elgg.org/elgg/trunk@7139 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/canvas/layouts/widgets.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'views/default/canvas') diff --git a/views/default/canvas/layouts/widgets.php b/views/default/canvas/layouts/widgets.php index d56b009d5..8526b9d92 100644 --- a/views/default/canvas/layouts/widgets.php +++ b/views/default/canvas/layouts/widgets.php @@ -23,7 +23,7 @@ - if($_SESSION['user']->guid == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ + if(get_loggedin_userid() == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ if(get_context() == "profile") { ?> @@ -270,7 +270,7 @@ if(get_context() != "profile"){ /* on groups */ guid == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ + if(get_loggedin_userid() == page_owner() || ($owner instanceof ElggGroup && $owner->canEdit())){ if(get_context() != "profile") { ?> -- cgit v1.2.3