Added logic in asrs for visible edit #683
@@ -395,7 +395,7 @@ class AsrsItemValidationResource extends Resource
|
||||
// }),
|
||||
->visible(function ($record): bool {
|
||||
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([
|
||||
|
||||
Reference in New Issue
Block a user