@@ -149,7 +149,9 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | // Security check (enable the most restrictive one) |
| 152 | -if ($user->socid > 0) accessforbidden(); |
|
| 152 | +if ($user->socid > 0) { |
|
| 153 | + accessforbidden(); |
|
| 154 | +} |
|
| 153 | 155 | //if ($user->socid > 0) accessforbidden(); |
| 154 | 156 | //$socid = 0; if ($user->socid > 0) $socid = $user->socid; |
| 155 | 157 | //$isdraft = (($object->status == $object::STATUS_DRAFT) ? 1 : 0); |
@@ -157,7 +159,9 @@ discard block |
||
| 157 | 159 | if (!isModEnabled('bookcal')) { |
| 158 | 160 | accessforbidden('Module bookcal not enabled'); |
| 159 | 161 | } |
| 160 | -if (!$permissiontoread) accessforbidden(); |
|
| 162 | +if (!$permissiontoread) { |
|
| 163 | + accessforbidden(); |
|
| 164 | +} |
|
| 161 | 165 | |
| 162 | 166 | |
| 163 | 167 | /* |