mirror of
https://github.com/pierre42100/ComunicAPI
synced 2024-11-27 07:49:27 +00:00
Fix groups member counting issue
This commit is contained in:
parent
6a4683e6a8
commit
55562f79eb
@ -555,7 +555,7 @@ class GroupsComponent {
|
||||
*/
|
||||
private function countMembers(int $id) : int {
|
||||
return db()->count(self::GROUPS_MEMBERS_TABLE,
|
||||
"WHERE groups_id = ?",
|
||||
"WHERE groups_id = ? AND level <= ".GroupMember::MEMBER,
|
||||
array($id));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user