aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/entities.php11
-rw-r--r--engine/lib/group.php11
2 files changed, 11 insertions, 11 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
diff --git a/engine/lib/group.php b/engine/lib/group.php
index d4de615de..2556001c5 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -108,17 +108,6 @@
{
return remove_object_from_group($this->getGUID(), $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 can_write_to_container($user_guid = 0)
- {
- return can_write_to_container($user_guid, $this->getGUID());
- }
public function get($name) {