X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Faccess_user.html;h=a91e6a85298f3709087803b6a5daa3a5d3a01192;hb=2315bce072580d129ab77a46b522486dc2f0e398;hp=a8cb341e691f07e3abe041180e70dcafe939c778;hpb=eab5690e7cd970706f709ac0ef4f1c3e317fcd7d;p=freeside.git diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html index a8cb341e6..a91e6a852 100644 --- a/httemplate/edit/access_user.html +++ b/httemplate/edit/access_user.html @@ -1,5 +1,5 @@ <% include( 'elements/edit.html', - 'name' => 'Internal User', + 'name' => 'Employee', 'table' => 'access_user', 'fields' => [ 'username', @@ -19,7 +19,7 @@ 'disabled' => 'Disable employee', }, 'edit_callback' => sub { my( $c, $o ) = @_; - $o->set('_password2', $o->_password); + $o->set('_password', ''); }, 'viewall_dir' => 'browse', 'html_bottom' => @@ -42,3 +42,9 @@ }, ) %> +<%init> + +die "access denied" + unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); + +