| @@ 282-292 (lines=11) @@ | ||
| 279 | /** |
|
| 280 | * @inheritdoc |
|
| 281 | */ |
|
| 282 | public function onExpansionGroupAddUser(Group $group, $loginAdded) |
|
| 283 | { |
|
| 284 | $group = $group->getName(); |
|
| 285 | ||
| 286 | // User was added to group, need to display all manialinks of the group to this user |
|
| 287 | if (isset($this->displayeds[$group])) { |
|
| 288 | foreach ($this->displayeds[$group] as $mlId => $manialink) { |
|
| 289 | $this->individualQueu[$loginAdded][$mlId] = $manialink; |
|
| 290 | } |
|
| 291 | } |
|
| 292 | } |
|
| 293 | ||
| 294 | /** |
|
| 295 | * @inheritdoc |
|
| @@ 297-307 (lines=11) @@ | ||
| 294 | /** |
|
| 295 | * @inheritdoc |
|
| 296 | */ |
|
| 297 | public function onExpansionGroupRemoveUser(Group $group, $loginRemoved) |
|
| 298 | { |
|
| 299 | $group = $group->getName(); |
|
| 300 | ||
| 301 | // User was removed from group, need to hide all manialinks of the group to this user |
|
| 302 | if (isset($this->displayeds[$group])) { |
|
| 303 | foreach ($this->displayeds[$group] as $mlId => $manialink) { |
|
| 304 | $this->hideIndividualQueu[$loginRemoved][$mlId] = $manialink; |
|
| 305 | } |
|
| 306 | } |
|
| 307 | } |
|
| 308 | ||
| 309 | /** |
|
| 310 | * @inheritdoc |
|