| @@ 210-220 (lines=11) @@ | ||
| 207 | /** |
|
| 208 | * @inheritdoc |
|
| 209 | */ |
|
| 210 | public function onExpansionGroupAddUser(Group $group, $loginAdded) |
|
| 211 | { |
|
| 212 | $group = $group->getName(); |
|
| 213 | ||
| 214 | // User was added to group, need to display all manialinks of the group to this user |
|
| 215 | if (isset($this->displayeds[$group])) { |
|
| 216 | foreach ($this->displayeds[$group] as $mlId => $manialink) { |
|
| 217 | $this->individualQueu[$loginAdded][$mlId] = $manialink; |
|
| 218 | } |
|
| 219 | } |
|
| 220 | } |
|
| 221 | ||
| 222 | /** |
|
| 223 | * @inheritdoc |
|
| @@ 225-235 (lines=11) @@ | ||
| 222 | /** |
|
| 223 | * @inheritdoc |
|
| 224 | */ |
|
| 225 | public function onExpansionGroupRemoveUser(Group $group, $loginRemoved) |
|
| 226 | { |
|
| 227 | $group = $group->getName(); |
|
| 228 | ||
| 229 | // User was added to group, need to hide all manialinks of the group to this user |
|
| 230 | if (isset($this->displayeds[$group])) { |
|
| 231 | foreach ($this->displayeds[$group] as $mlId => $manialink) { |
|
| 232 | $this->hideIndividualQueu[$loginRemoved][$mlId] = $manialink; |
|
| 233 | } |
|
| 234 | } |
|
| 235 | } |
|
| 236 | ||
| 237 | /** |
|
| 238 | * @inheritdoc |
|