Merge pull request 'removed logic in asrs' (#684) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Reviewed-on: #684
This commit was merged in pull request #684.
This commit is contained in:
@@ -385,7 +385,7 @@ class AsrsItemValidationResource extends Resource
|
|||||||
->filtersFormMaxHeight('280px')
|
->filtersFormMaxHeight('280px')
|
||||||
->actions([
|
->actions([
|
||||||
Tables\Actions\ViewAction::make(),
|
Tables\Actions\ViewAction::make(),
|
||||||
Tables\Actions\EditAction::make()
|
Tables\Actions\EditAction::make(),
|
||||||
// ->hidden(function ($record): bool {
|
// ->hidden(function ($record): bool {
|
||||||
// if (auth()->user()?->hasRole('SuperAdmin')) {
|
// if (auth()->user()?->hasRole('SuperAdmin')) {
|
||||||
// return false;
|
// return false;
|
||||||
@@ -393,10 +393,10 @@ class AsrsItemValidationResource extends Resource
|
|||||||
|
|
||||||
// return trim(strtolower($record->status)) == 'updated';
|
// return trim(strtolower($record->status)) == 'updated';
|
||||||
// }),
|
// }),
|
||||||
->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 ?? '')) == null || strtolower(trim($record->status ?? '')) == '';
|
// || strtolower(trim($record->status ?? '')) != 'updated' || strtolower(trim($record->status ?? '')) == null || strtolower(trim($record->status ?? '')) == '';
|
||||||
}),
|
// }),
|
||||||
])
|
])
|
||||||
->bulkActions([
|
->bulkActions([
|
||||||
Tables\Actions\BulkActionGroup::make([
|
Tables\Actions\BulkActionGroup::make([
|
||||||
|
|||||||
Reference in New Issue
Block a user