mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Added admin page for measurement unit.
This commit is contained in:
parent
06c6483fd1
commit
fd4b474dbd
8 changed files with 218 additions and 15 deletions
|
@ -37,6 +37,7 @@ use App\Entity\Devices\Device;
|
|||
use App\Entity\Parts\Category;
|
||||
use App\Entity\Parts\Footprint;
|
||||
use App\Entity\Parts\Manufacturer;
|
||||
use App\Entity\Parts\MeasurementUnit;
|
||||
use App\Entity\Parts\Storelocation;
|
||||
use App\Entity\Parts\Supplier;
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
|
@ -87,6 +88,9 @@ class StructureVoter extends ExtendedVoter
|
|||
case Currency::class:
|
||||
//TODO: Implement own permission
|
||||
return 'suppliers';
|
||||
case MeasurementUnit::class:
|
||||
//TODO: Implement own permission
|
||||
return 'suppliers';
|
||||
}
|
||||
//When the class is not supported by this class return null
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue