mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-20 04:43:58 +00:00
- Delete function
- Set default get active list
This commit is contained in:
@@ -43,6 +43,8 @@ class EntityModule extends BaseController
|
||||
|
||||
if (!empty($status) > 0) {
|
||||
$query->whereIn('status', $status);
|
||||
}else{
|
||||
$query->whereIn('status', [config('constants.entity.status.active')]);
|
||||
}
|
||||
|
||||
$query->where('user_id', Auth::guard('user-api')->user()->id);
|
||||
|
||||
Reference in New Issue
Block a user