ajun 5 лет назад
Родитель
Сommit
c2a8cdb2bd
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/Filters/DemandFilters.php

+ 1 - 0
app/Filters/DemandFilters.php

@@ -54,6 +54,7 @@ class DemandFilters
         $user = Auth::user();
         $authorities = $user->authorities();
         $authorities = data_get($authorities,'*.id');
+        $authorities[] = null;
         $this->queryBuilder->whereIn('authority_id',$authorities);
     }
 }