phone gets a pin
[freeside.git] / httemplate / edit / svc_phone.cgi
index ca62b64..958558b 100644 (file)
@@ -1,7 +1,7 @@
 <% include( 'elements/svc_Common.html',
                'name'     => 'Phone number',
                'table'    => 'svc_phone',
-               'fields'   => [qw( countrycode phonenum )], #pin
+               'fields'   => [qw( countrycode phonenum pin )],
                'labels'   => {
                                'countrycode' => 'Country code',
                                'phonenum'    => 'Phone number',
@@ -9,3 +9,9 @@
                              },
            )
 %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Provision customer service'); #something else more specific?
+
+</%init>