Can update group membership level.

This commit is contained in:
Pierre HUBERT
2018-07-10 08:30:06 +02:00
parent a90cde6268
commit 564a06bd1c
2 changed files with 45 additions and 1 deletions

View File

@ -224,7 +224,7 @@ class GroupsComponent {
* @param int $level The target level
* @return bool TRUE for a success / FALSE else
*/
private function updateMembershipLevel(int $userID, int $groupID, int $level) : bool {
public function updateMembershipLevel(int $userID, int $groupID, int $level) : bool {
return db()->updateDB(
self::GROUPS_MEMBERS_TABLE,
"user_id = ? AND groups_id = ?",