Added admin page for measurement unit.

This commit is contained in:
Jan Böhmer 2019-08-14 18:31:46 +02:00
parent 06c6483fd1
commit fd4b474dbd
8 changed files with 218 additions and 15 deletions

View file

@ -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;