From b694ca8861889cfb9f6a8009379a893a923b0b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Thu, 9 Apr 2020 13:07:36 +0200 Subject: [PATCH] Fixed wrong permission name in StructureVoter. --- src/Security/Voter/StructureVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/Voter/StructureVoter.php b/src/Security/Voter/StructureVoter.php index fe3ce84b..f3ebfabe 100644 --- a/src/Security/Voter/StructureVoter.php +++ b/src/Security/Voter/StructureVoter.php @@ -59,7 +59,7 @@ use function is_object; class StructureVoter extends ExtendedVoter { protected const OBJ_PERM_MAP = [ - AttachmentType::class => 'attachment_type', + AttachmentType::class => 'attachment_types', Category::class => 'categories', Device::class => 'devices', Footprint::class => 'footprints',