projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
merge NG auth, RT#21563
[freeside.git]
/
httemplate
/
edit
/
process
/
msg_template.html
diff --git
a/httemplate/edit/process/msg_template.html
b/httemplate/edit/process/msg_template.html
index
f43d172
..
e146adf
100644
(file)
--- a/
httemplate/edit/process/msg_template.html
+++ b/
httemplate/edit/process/msg_template.html
@@
-2,16
+2,14
@@
'table' => 'msg_template',
'viewall_dir' => 'browse',
#'popup_reload'=> 1,
'table' => 'msg_template',
'viewall_dir' => 'browse',
#'popup_reload'=> 1,
- 'debug' =>
1
,
+ 'debug' =>
0
,
'precheck_callback' => \&precheck_callback,
'args_callback' => \&args_callback,
)
%>
<%init>
die "access denied"
'precheck_callback' => \&precheck_callback,
'args_callback' => \&args_callback,
)
%>
<%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;
sub precheck_callback {
my $cgi = shift;
@@
-31,6
+29,8
@@
sub args_callback {
# no validation of these; they can contain just about anything
$content{'subject'} = $cgi->param('subject') || '';
$content{'body'} = $cgi->param('body') || '';
# no validation of these; they can contain just about anything
$content{'subject'} = $cgi->param('subject') || '';
$content{'body'} = $cgi->param('body') || '';
+ $object->subject('');
+ $object->body('');
return %content;
}
return %content;
}