diff options
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 8 | ||||
-rwxr-xr-x | httemplate/edit/process/part_pkg.cgi | 8 |
2 files changed, 4 insertions, 12 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 82d622610..7e7944871 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -363,13 +363,9 @@ Line-item revenue recognition <% include('/elements/footer.html') %> <%init> -#1.7 die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -#1.9 -#die "access denied" -# unless $FS::CurrentUser::CurrentUser->access_right('Edit package definitions') -# || $FS::CurrentUser::CurrentUser->access_right('Edit global package definitions'); + unless $FS::CurrentUser::CurrentUser->access_right('Edit package definitions') + || $FS::CurrentUser::CurrentUser->access_right('Edit global package definitions'); if ( $cgi->param('clone') && $cgi->param('clone') =~ /^(\d+)$/ ) { $cgi->param('clone', $1); diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi index f4d0c209e..d3d4f8510 100755 --- a/httemplate/edit/process/part_pkg.cgi +++ b/httemplate/edit/process/part_pkg.cgi @@ -11,13 +11,9 @@ %} <%init> -#1.7 die "access denied" - unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -#1.9 -#die "access denied" -# unless $FS::CurrentUser::CurrentUser->access_right('Edit package definitions') -# || $FS::CurrentUser::CurrentUser->access_right('Edit global package definitions'); + unless $FS::CurrentUser::CurrentUser->access_right('Edit package definitions') + || $FS::CurrentUser::CurrentUser->access_right('Edit global package definitions'); my $dbh = dbh; my $conf = new FS::Conf; |