projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix diabled package optional reporting classes still selectable on package def edit...
[freeside.git]
/
httemplate
/
edit
/
access_user.html
diff --git
a/httemplate/edit/access_user.html
b/httemplate/edit/access_user.html
index
a8cb341
..
73488ef
100644
(file)
--- a/
httemplate/edit/access_user.html
+++ b/
httemplate/edit/access_user.html
@@
-1,5
+1,5
@@
<% include( 'elements/edit.html',
<% include( 'elements/edit.html',
- 'name' => '
Internal User
',
+ 'name' => '
Employee
',
'table' => 'access_user',
'fields' => [
'username',
'table' => 'access_user',
'fields' => [
'username',
@@
-19,14
+19,14
@@
'disabled' => 'Disable employee',
},
'edit_callback' => sub { my( $c, $o ) = @_;
'disabled' => 'Disable employee',
},
'edit_callback' => sub { my( $c, $o ) = @_;
- $o->set('_password
2', $o->_password
);
+ $o->set('_password
', ''
);
},
'viewall_dir' => 'browse',
'html_bottom' =>
sub {
my $access_user = shift;
},
'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',
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>