1
0
forked from poc/pds

Merge pull request 'Added logic in asrs for visible edit' (#683) from ranjith-dev into master

Reviewed-on: poc/pds#683
This commit is contained in:
2026-06-01 04:11:42 +00:00

View File

@@ -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([