diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 18:37:17 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-08 18:37:17 +0000 |
commit | c0e6998b01ddc9b87fd0869f3662cef3bca5b33b (patch) | |
tree | 727c4a7e78b6989282aac5f1e6aa250f73b5fd94 /engine/lib/group.php | |
parent | 6c10be39372a8b282d255f940b4a9237b213e6b4 (diff) | |
download | elgg-c0e6998b01ddc9b87fd0869f3662cef3bca5b33b.tar.gz elgg-c0e6998b01ddc9b87fd0869f3662cef3bca5b33b.tar.bz2 |
Solved write issues in groups for non-admin users.
git-svn-id: https://code.elgg.org/elgg/trunk@1808 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/group.php')
-rw-r--r-- | engine/lib/group.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php index 3d5c4bad8..a8d2d570e 100644 --- a/engine/lib/group.php +++ b/engine/lib/group.php @@ -230,7 +230,7 @@ */ public function isMember($user = 0) {
- if ($user == 0) $user = $_SESSION['user']; + if (!($user instanceof ElggUser)) $user = $_SESSION['user']; return is_group_member($this->getGUID(), $user->getGUID()); } |