Completed
Branch develop (e69864)
by
unknown
16:39
created
htdocs/bookcal/availabilities_list.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 /*
Please login to merge, or discard this patch.