diff options
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index dee522099..40bf7a674 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -120,6 +120,15 @@ return can_write_to_container($user_guid, $this->getGUID()); } + public function get($name) {
+
+ if ($name == 'username') {
+ return 'group:' . $this->getGUID();
+ }
+ return parent::get($name);
+
+ }
+
/**
* Start friendable compatibility block:
*
@@ -227,6 +236,7 @@ return get_group_members($this->getGUID(), $limit, $offset, 0 , $count); }
+
/** * Returns whether the current group is public membership or not. @@ -791,5 +801,4 @@ return get_entities_from_relationship('member', $user_guid, true); } - ?>
\ No newline at end of file |