mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 19:41:07 +03:30
remove the where condition for index items query and add enable column to labels table.
This commit is contained in:
@@ -48,7 +48,7 @@ class ItemController extends Controller
|
||||
if ( $user->hasRole( 'User' ) ) {
|
||||
$Items = $Items->whereHas( 'user' , function ( $query ) use ( $user ) {
|
||||
$query->where( 'medical_center_id' , $user->medical_center_id );
|
||||
} )->where( "status" , StatusTypeEnum::APPROVED );
|
||||
} );
|
||||
} elseif ( $user->hasRole( 'Supervisor' ) ) {
|
||||
$Items = $Items->whereHas( 'user' , function ( $query ) use ( $user ) {
|
||||
$query->where( 'medical_center_id' , $user->medical_center_id );
|
||||
|
||||
Reference in New Issue
Block a user