aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Entity/User.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/UserBundle/Entity/User.php')
-rw-r--r--src/Wallabag/UserBundle/Entity/User.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Wallabag/UserBundle/Entity/User.php b/src/Wallabag/UserBundle/Entity/User.php
index 4f24b17a..4a52b186 100644
--- a/src/Wallabag/UserBundle/Entity/User.php
+++ b/src/Wallabag/UserBundle/Entity/User.php
@@ -393,4 +393,13 @@ class User extends BaseUser implements TwoFactorInterface, TrustedComputerInterf
393 393
394 return $groups; 394 return $groups;
395 } 395 }
396
397 /**
398 * @param Group $group
399 * @param $role
400 */
401 public function addAGroup(Group $group, $role)
402 {
403 $this->userGroups->add(new UserGroup($this, $group, $role));
404 }
396} 405}