@@ 328-331 (lines=4) @@ | ||
325 | } |
|
326 | ||
327 | $identity = $this->getServiceBits($mask); |
|
328 | if ($permission !== null) { |
|
329 | $permissionMask = $this->getMaskBuilderConst($identity, 'GROUP_' . $permission); |
|
330 | $mask = $mask & $permissionMask; |
|
331 | } |
|
332 | ||
333 | $mask = $this->removeServiceBits($mask); |
|
334 | ||
@@ 368-372 (lines=5) @@ | ||
365 | $identity = $this->getServiceBits($mask); |
|
366 | $mask = $this->removeServiceBits($mask); |
|
367 | foreach ($map as $permission => $id) { |
|
368 | if ($id === $identity) { |
|
369 | if (0 !== ($mask & $this->getMaskBuilderConst($identity, 'GROUP_' . $permission))) { |
|
370 | $result[] = $permission; |
|
371 | } |
|
372 | } |
|
373 | } |
|
374 | } |
|
375 |