aboutsummaryrefslogtreecommitdiff
path: root/engine/classes
diff options
context:
space:
mode:
Diffstat (limited to 'engine/classes')
-rw-r--r--engine/classes/ElggObject.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/classes/ElggObject.php b/engine/classes/ElggObject.php
index f71801144..caccfb038 100644
--- a/engine/classes/ElggObject.php
+++ b/engine/classes/ElggObject.php
@@ -211,7 +211,7 @@ class ElggObject extends ElggEntity {
// must be member of group
if (elgg_instanceof($this->getContainerEntity(), 'group')) {
- if (!$this->getContainerEntity()->isMember(get_user($user_guid))) {
+ if (!$this->getContainerEntity()->canWriteToContainer(get_user($user_guid))) {
return false;
}
}