Apply EnforcesRoles trait in ProductResource and ProductSaleResource
Deploy / deploy (push) Successful in 16s
Deploy / deploy (push) Successful in 16s
Import was present but use statement inside class body was missing, so role checks had no effect on these two resources. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
fc5d1a65ae
commit
596d66b366
2 files changed
+4
No files matched your search
@@ -27,6 +27,8 @@ use Illuminate\Support\HtmlString;
|
|||||||
use Picqer\Barcode\BarcodeGeneratorSVG;
|
use Picqer\Barcode\BarcodeGeneratorSVG;
|
||||||
|
|
||||||
class ProductResource extends Resource {
|
class ProductResource extends Resource {
|
||||||
|
use EnforcesRoles;
|
||||||
|
|
||||||
protected static ?string $model = Product::class;
|
protected static ?string $model = Product::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-inbox';
|
protected static ?string $navigationIcon = 'heroicon-o-inbox';
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ use Filament\Forms\Components\DatePicker;
|
|||||||
use Filament\Tables\Columns\TextColumn;
|
use Filament\Tables\Columns\TextColumn;
|
||||||
|
|
||||||
class ProductSaleResource extends Resource {
|
class ProductSaleResource extends Resource {
|
||||||
|
use EnforcesRoles;
|
||||||
|
|
||||||
protected static ?string $model = ProductSale::class;
|
protected static ?string $model = ProductSale::class;
|
||||||
|
|
||||||
protected static ?string $navigationIcon = 'heroicon-o-arrow-up-on-square';
|
protected static ?string $navigationIcon = 'heroicon-o-arrow-up-on-square';
|
||||||
|
|||||||
Reference in new issue
Block a user