aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/UserBundle/Entity/User.php
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2017-04-27 19:17:19 +0200
committerThomas Citharel <tcit@tcit.fr>2017-06-23 09:27:23 +0200
commit5847dd3572caf06c0e0d5e307241c3b6bc3f8611 (patch)
tree8905d4de388dd18239ea323f4650ff0070064eab /src/Wallabag/UserBundle/Entity/User.php
parent2585953e0dae631b65c59b0e31196d65bdde84df (diff)
downloadwallabag-5847dd3572caf06c0e0d5e307241c3b6bc3f8611.tar.gz
wallabag-5847dd3572caf06c0e0d5e307241c3b6bc3f8611.tar.zst
wallabag-5847dd3572caf06c0e0d5e307241c3b6bc3f8611.zip
MOAR WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
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}