|
@@ -73,8 +73,10 @@ if ($user->socid > 0) { // Protection if external user
|
|
|
//$socid = $user->socid;
|
|
|
accessforbidden();
|
|
|
}
|
|
|
-$result = restrictedArea($user, 'holiday', $id, '', 'readall');
|
|
|
-
|
|
|
+$result = restrictedArea($user, 'holiday', $id, '', '');
|
|
|
+if (!$user->hasRight('holiday', 'readall')) {
|
|
|
+ accessforbidden();
|
|
|
+}
|
|
|
|
|
|
/*
|
|
|
* Actions
|