|
@@ 281-284 (lines=4) @@
|
| 278 |
|
&& ($permission === 'ASSIGN' || $permission === 'SHARE') |
| 279 |
|
) { |
| 280 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
| 281 |
|
} elseif ($accessLevel < AccessLevel::SYSTEM_LEVEL) { |
| 282 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
| 283 |
|
$rootMask |= $this->getMaskBuilderConst($identity, 'MASK_' . $permission . '_SYSTEM'); |
| 284 |
|
} |
| 285 |
|
} elseif ($metadata->isGlobalLevelOwned()) { |
| 286 |
|
if ($accessLevel < AccessLevel::GLOBAL_LEVEL) { |
| 287 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
|
@@ 285-290 (lines=6) @@
|
| 282 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
| 283 |
|
$rootMask |= $this->getMaskBuilderConst($identity, 'MASK_' . $permission . '_SYSTEM'); |
| 284 |
|
} |
| 285 |
|
} elseif ($metadata->isGlobalLevelOwned()) { |
| 286 |
|
if ($accessLevel < AccessLevel::GLOBAL_LEVEL) { |
| 287 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
| 288 |
|
$rootMask |= $this->getMaskBuilderConst($identity, 'MASK_' . $permission . '_GLOBAL'); |
| 289 |
|
} |
| 290 |
|
} elseif ($metadata->isLocalLevelOwned()) { |
| 291 |
|
if ($accessLevel < AccessLevel::LOCAL_LEVEL) { |
| 292 |
|
$rootMask &= ~$this->removeServiceBits($mask); |
| 293 |
|
$rootMask |= $this->getMaskBuilderConst($identity, 'MASK_' . $permission . '_LOCAL'); |