Merge pull request 'Added logic in asrs for visible edit' (#683) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #683
This commit was merged in pull request #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([