mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-19 00:58:34 +02:00
Added permissions for the new functions.
This commit is contained in:
parent
d2bae3a4f2
commit
da14ee942d
14 changed files with 213 additions and 64 deletions
|
@ -86,11 +86,9 @@ class StructureVoter extends ExtendedVoter
|
|||
case Supplier::class:
|
||||
return 'suppliers';
|
||||
case Currency::class:
|
||||
//TODO: Implement own permission
|
||||
return 'suppliers';
|
||||
return 'currencies';
|
||||
case MeasurementUnit::class:
|
||||
//TODO: Implement own permission
|
||||
return 'suppliers';
|
||||
return 'measurement_units';
|
||||
}
|
||||
//When the class is not supported by this class return null
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue