quick list of area codes and a kludge to print DA numbers for all of them
[freeside.git] / httemplate / edit / access_user.html
index a8cb341..73488ef 100644 (file)
@@ -1,5 +1,5 @@
 <% include( 'elements/edit.html',
-                 'name'   => 'Internal User',
+                 'name'   => 'Employee',
                  'table'  => 'access_user',
                  'fields' => [
                                'username',
                                'disabled'  => 'Disable employee',
                              },
                  'edit_callback' => sub { my( $c, $o ) = @_; 
-                                          $o->set('_password2', $o->_password);
+                                          $o->set('_password', '');
                                         },
                  'viewall_dir' => 'browse',
                  'html_bottom' =>
                    sub {
                      my $access_user = shift;
 
-                     '<BR>Internal Access Groups<BR>'.
+                     '<BR>Employee Groups<BR>'.
                      ntable("#cccccc",2).
                      '<TR><TD>'.
                      include( '/elements/checkboxes-table.html',
@@ -42,3 +42,9 @@
                    },
            )
 %>
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+</%init>