summaryrefslogtreecommitdiff
path: root/httemplate/edit/part_referral.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/part_referral.html')
-rwxr-xr-xhttemplate/edit/part_referral.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/httemplate/edit/part_referral.html b/httemplate/edit/part_referral.html
index 7ce52174d..eeddbdbbd 100755
--- a/httemplate/edit/part_referral.html
+++ b/httemplate/edit/part_referral.html
@@ -7,3 +7,10 @@
'html_table_bottom' => include('/elements/tr-select-agent.html'),
)
%>
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Edit advertising sources')
+ || $FS::CurrentUser::CurrentUser->access_right('Edit global advertising sources');
+
+</%init>