Skip to content

Commit 6fc3b51

Browse files
committed
fixes
1 parent ed43bce commit 6fc3b51

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/abuse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function_requirements('abuse_admin');
6565
');
6666
} else {
6767
$smarty = new TFSmarty();
68+
foreach (['strtoupper', 'in_array', 'json_encode'] as $function)
69+
$smarty->registerPlugin('modifier', $function, $function);
6870
page_title('Manage Abuse Complaints');
6971
if (isset($GLOBALS['tf']->variables->request['id'])) {
7072
$id = (int)$GLOBALS['tf']->variables->request['id'];

src/abuse_admin.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function_requirements('class.ImapAbuseCheck');
2424
$limit = 'limit 20';
2525
function_requirements('has_acl');
2626
if ($GLOBALS['tf']->ima != 'admin' || !has_acl('client_billing')) {
27+
myadmin_log('myadmin', 'debug', 'Not Admin', __LINE__, __FILE__);
2728
dialog('Not admin', 'Not Admin or you lack the permissions to view this page.');
2829
return false;
2930
}

0 commit comments

Comments
 (0)