aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/entities.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-23 13:49:21 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-23 13:49:21 +0000
commitf980c532252d348ae92bf0abde0dadaaeaf020b6 (patch)
tree6a93cbb50aec2c395c305653a1b1d3951580d2ec /engine/lib/entities.php
parentb6a9bdba4bf23fecae2b5bd2cd4279d6b95bc503 (diff)
downloadelgg-f980c532252d348ae92bf0abde0dadaaeaf020b6.tar.gz
elgg-f980c532252d348ae92bf0abde0dadaaeaf020b6.tar.bz2
Moving canWriteToContainer
git-svn-id: https://code.elgg.org/elgg/trunk@1500 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/entities.php')
-rw-r--r--engine/lib/entities.php11
1 files changed, 11 insertions, 0 deletions
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
@@ -379,6 +379,17 @@
}
/**
+ * 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
*
* @return int The access ID