From 49fc33db77d202f175a4d8a33e3eab1e52080a4d Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 15 May 2012 18:25:37 -0700 Subject: read only access to message templates, RT#1`7477 --- httemplate/edit/process/msg_template.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'httemplate/edit/process/msg_template.html') diff --git a/httemplate/edit/process/msg_template.html b/httemplate/edit/process/msg_template.html index 47fe978a8..b19f5c542 100644 --- a/httemplate/edit/process/msg_template.html +++ b/httemplate/edit/process/msg_template.html @@ -9,9 +9,7 @@ %> <%init> die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Edit templates') - || $FS::CurrentUser::CurrentUser->access_right('Edit global templates') - || $FS::CurrentUser::CurrentUser->access_right('Configuration'); + unless $FS::CurrentUser::CurrentUser->access_right(['Edit templates','Edit global templates']); sub precheck_callback { my $cgi = shift; -- cgit v1.2.1