Fixed wrong permission name in StructureVoter.

This commit is contained in:
Jan Böhmer 2020-04-09 13:07:36 +02:00
parent a28747b7ba
commit b694ca8861

View file

@ -59,7 +59,7 @@ use function is_object;
class StructureVoter extends ExtendedVoter class StructureVoter extends ExtendedVoter
{ {
protected const OBJ_PERM_MAP = [ protected const OBJ_PERM_MAP = [
AttachmentType::class => 'attachment_type', AttachmentType::class => 'attachment_types',
Category::class => 'categories', Category::class => 'categories',
Device::class => 'devices', Device::class => 'devices',
Footprint::class => 'footprints', Footprint::class => 'footprints',