mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-01 14:04:30 +02:00
Added an admin page for currencies.
This commit is contained in:
parent
87e6f641c3
commit
2468409212
15 changed files with 374 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue