@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | |
35 | 35 | //Check if a sub permission should be checked -> $attribute has format name.edit |
36 | - if(strpos($attribute, '.') !== false) { |
|
36 | + if (strpos($attribute, '.') !== false) { |
|
37 | 37 | [$perm, $op] = explode('.', $attribute); |
38 | 38 | return in_array($op, $this->resolver->listOperationsForPermission('parts_'.$perm), false); |
39 | 39 | } |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | |
49 | 49 | protected function voteOnUser($attribute, $subject, User $user): bool |
50 | 50 | { |
51 | - if($subject instanceof Part) { |
|
51 | + if ($subject instanceof Part) { |
|
52 | 52 | |
53 | 53 | //Check for sub permissions |
54 | - if(strpos($attribute, '.') !== false) { |
|
54 | + if (strpos($attribute, '.') !== false) { |
|
55 | 55 | [$perm, $op] = explode('.', $attribute); |
56 | - return $this->resolver->inherit($user, 'parts_'. $perm, $op) ?? false; |
|
56 | + return $this->resolver->inherit($user, 'parts_'.$perm, $op) ?? false; |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | //Null concealing operator means, that no |