From b412b990eb3e8d30acbcf927c531d77f529ce8c4 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Fri, 19 Oct 2012 12:40:36 -0400 Subject: Correctly passing guid instead of object in container permissions check. --- engine/classes/ElggObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/classes/ElggObject.php') diff --git a/engine/classes/ElggObject.php b/engine/classes/ElggObject.php index b4bae6825..fa6296c8c 100644 --- a/engine/classes/ElggObject.php +++ b/engine/classes/ElggObject.php @@ -223,7 +223,7 @@ class ElggObject extends ElggEntity { // must be member of group if (elgg_instanceof($this->getContainerEntity(), 'group')) { - if (!$this->getContainerEntity()->canWriteToContainer(get_user($user_guid))) { + if (!$this->getContainerEntity()->canWriteToContainer($user_guid)) { return false; } } -- cgit v1.2.3