Bug 16295: Fix access to MMT admin page
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 23 May 2017 17:10:20 +0000 (14:10 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 29 May 2017 02:09:35 +0000 (22:09 -0400)
There was a typo in the permission code

Test plan:
Try to access the marc modification templates admin page with the
marc_modification_templates permission (and not all tools permissions)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
tools/marc_modification_templates.pl

index 4e477c0..c115429 100755 (executable)
@@ -36,7 +36,7 @@ my ($template, $loggedinuser, $cookie)
             query => $cgi,
             type => "intranet",
             authnotrequired => 0,
-            flagsrequired => { tools => 'marc_modfication_templates' },
+            flagsrequired => { tools => 'marc_modification_templates' },
             debug => 1,
     });