add station layer
This commit is contained in:
@@ -17,8 +17,11 @@ class RequestPortalService
|
||||
$user = auth()->user();
|
||||
$query = Mission::query();
|
||||
|
||||
if ($user->hasPermissionTo('manage-request-portal-city')) {
|
||||
$query->where('edare_shahri_id', '=', $user->edarate_shahri_id);
|
||||
if ($user->hasPermissionTo('manage-request-portal-station')) {
|
||||
$query->where('station_id', '=', $user->station_id);
|
||||
}
|
||||
elseif ($user->hasPermissionTo('manage-request-portal-city')) {
|
||||
$query->where('city_id', '=', $user->city_id);
|
||||
}
|
||||
elseif ($user->hasPermissionTo('manage-request-portal-province')) {
|
||||
$query->where('province_id', '=', $user->province_id);
|
||||
|
||||
Reference in New Issue
Block a user