Added logic in asrs for visible edit #683
@@ -395,7 +395,7 @@ class AsrsItemValidationResource extends Resource
|
|||||||
// }),
|
// }),
|
||||||
->visible(function ($record): bool {
|
->visible(function ($record): bool {
|
||||||
return auth()->user()?->hasRole('SuperAdmin')
|
return auth()->user()?->hasRole('SuperAdmin')
|
||||||
|| strtolower(trim($record->status ?? '')) != 'updated';
|
|| strtolower(trim($record->status ?? '')) != 'updated' || strtolower(trim($record->status ?? '')) == null || strtolower(trim($record->status ?? '')) == '';
|
||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
|
|||||||
Reference in New Issue
Block a user