Skip to content
Snippets Groups Projects
Commit 20809811 authored by Moreau Elise's avatar Moreau Elise
Browse files

remove user from a group

parent d175d51b
No related branches found
No related tags found
No related merge requests found
...@@ -214,11 +214,14 @@ class User implements JsonSerializable ...@@ -214,11 +214,14 @@ class User implements JsonSerializable
$this->$password = $password; $this->$password = $password;
} }
public function addGroup(Group $group){ public function addGroup(Group $group){
$this->groups->add($group); $this->groups->add($group);
} }
public function removeGroup(Group $group){
$this->groups->removeElement($group);
}
public function addAdmin(Group $group){ public function addAdmin(Group $group){
$this->admin->add($group); $this->admin->add($group);
} }
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment