From f980c532252d348ae92bf0abde0dadaaeaf020b6 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 23 Jul 2008 13:49:21 +0000 Subject: Moving canWriteToContainer git-svn-id: https://code.elgg.org/elgg/trunk@1500 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/entities.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'engine/lib/entities.php') diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 4682d27ba..5e52837aa 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -378,6 +378,17 @@ return can_edit_entity_metadata($this->getGUID(), $user_guid); } + /** + * Returns whether the given user (or current user) has the ability to write to this group. + * + * @param int $user_guid The user. + * @return bool + */ + public function canWriteToContainer($user_guid = 0) + { + return can_write_to_container($user_guid, $this->getGUID()); + } + /** * Obtain this entity's access ID * -- cgit v1.2.3