Compare commits
No commits in common. "43eebd95282fef2598b9fa64d1a552c1987e63e8" and "3defbd82538351b019d7bac3aba221f7b12308cb" have entirely different histories.
43eebd9528
...
3defbd8253
@ -1,7 +1,6 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
**2025-03-11**
|
**2025-03-11**
|
||||||
- Fixed #122 - Non-admins can see payments
|
|
||||||
- Fixed #107 - Fix dashboard
|
- Fixed #107 - Fix dashboard
|
||||||
- Fixed #118 - Improved customer form and re-add 'create customer' to order form
|
- Fixed #118 - Improved customer form and re-add 'create customer' to order form
|
||||||
- Fixed #117 - Draft orders should not show up in order tabs
|
- Fixed #117 - Draft orders should not show up in order tabs
|
||||||
|
@ -112,7 +112,8 @@ public static function getPages(): array
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'index' => \App\Filament\Admin\Resources\CustomerResource\Pages\ListCustomers::route('/'),
|
'index' => \App\Filament\Admin\Resources\CustomerResource\Pages\ListCustomers::route('/'),
|
||||||
'edit' => \App\Filament\Admin\Resources\CustomerResource\Pages\EditCustomer::route('/{record}/edit'),
|
// 'create' => \App\Filament\Admin\Resources\CustomerResource\Pages\CreateCustomer::route('/create'),
|
||||||
|
'edit' => \App\Filament\Admin\Resources\CustomerResource\Pages\EditCustomer::route('/{record}/edit'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
|
|
||||||
class PaymentsRelationManager extends RelationManager
|
class PaymentsRelationManager extends RelationManager
|
||||||
{
|
{
|
||||||
@ -28,9 +27,4 @@ public function table(Table $table): Table
|
|||||||
{
|
{
|
||||||
return PaymentResource::table($table);
|
return PaymentResource::table($table);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function canViewForRecord(Model $ownerRecord, string $pageClass): bool
|
|
||||||
{
|
|
||||||
return auth()->user()->is_admin ?? false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user