Added an admin page for currencies.

This commit is contained in:
Jan Böhmer 2019-08-12 23:45:21 +02:00
parent 87e6f641c3
commit 2468409212
15 changed files with 374 additions and 9 deletions

View file

@ -33,12 +33,13 @@ namespace App\Security\Voter;
use App\Entity\Attachments\AttachmentType;
use App\Entity\Device\Device;
use App\Entity\Devices\Device;
use App\Entity\Parts\Category;
use App\Entity\Parts\Footprint;
use App\Entity\Parts\Manufacturer;
use App\Entity\Parts\Storelocation;
use App\Entity\Parts\Supplier;
use App\Entity\PriceInformations\Currency;
use App\Entity\UserSystem\User;
class StructureVoter extends ExtendedVoter
@ -83,6 +84,9 @@ class StructureVoter extends ExtendedVoter
return 'storelocations';
case Supplier::class:
return 'suppliers';
case Currency::class:
//TODO: Implement own permission
return 'suppliers';
}
//When the class is not supported by this class return null
return null;