diff --git a/app/Classes/RoleHelper.php b/app/Classes/RoleHelper.php index 5750597..f363a42 100644 --- a/app/Classes/RoleHelper.php +++ b/app/Classes/RoleHelper.php @@ -97,7 +97,7 @@ public static function getUserRole($cid, $fac) if ($fac == "ZHQ") { return 'Division Staff'; } - $facility = Facility::where('id', $fac)->get(); + $facility = Facility::where('id', $fac)->first(); if ($cid == $facility->atm) { return 'Air Traffic Manager'; }