mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Renamed "devices" permission to "projects"
This commit is contained in:
parent
f2dfe12087
commit
7b6a906d98
19 changed files with 157 additions and 23 deletions
|
@ -96,7 +96,7 @@ class ParameterVoter extends ExtendedVoter
|
|||
} elseif ($subject instanceof CurrencyParameter) {
|
||||
$param = 'currencies';
|
||||
} elseif ($subject instanceof ProjectParameter) {
|
||||
$param = 'devices';
|
||||
$param = 'projects';
|
||||
} elseif ($subject instanceof FootprintParameter) {
|
||||
$param = 'footprints';
|
||||
} elseif ($subject instanceof GroupParameter) {
|
||||
|
|
|
@ -40,7 +40,7 @@ class StructureVoter extends ExtendedVoter
|
|||
protected const OBJ_PERM_MAP = [
|
||||
AttachmentType::class => 'attachment_types',
|
||||
Category::class => 'categories',
|
||||
Project::class => 'devices',
|
||||
Project::class => 'projects',
|
||||
Footprint::class => 'footprints',
|
||||
Manufacturer::class => 'manufacturers',
|
||||
Storelocation::class => 'storelocations',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue