projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4bb0b0f
)
svc_acct.dir should be editable with ACL (#1730)
author
jeff
<jeff>
Wed, 18 Jul 2007 03:24:25 +0000
(
03:24
+0000)
committer
jeff
<jeff>
Wed, 18 Jul 2007 03:24:25 +0000
(
03:24
+0000)
FS/FS/AccessRight.pm
patch
|
blob
|
history
httemplate/edit/svc_acct.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/AccessRight.pm
b/FS/FS/AccessRight.pm
index
7a8bfc2
..
de3423a
100644
(file)
--- a/
FS/FS/AccessRight.pm
+++ b/
FS/FS/AccessRight.pm
@@
-117,6
+117,7
@@
assigned to users and/or groups.
# customer service rights
###
'Edit usage', #NEW
# customer service rights
###
'Edit usage', #NEW
+ 'Edit home dir', #NEW
'Edit www config', #NEW
'View customer services', #NEW
'Provision customer service',
'Edit www config', #NEW
'View customer services', #NEW
'Provision customer service',
diff --git
a/httemplate/edit/svc_acct.cgi
b/httemplate/edit/svc_acct.cgi
index
e0610b2
..
d4adbc9
100755
(executable)
--- a/
httemplate/edit/svc_acct.cgi
+++ b/
httemplate/edit/svc_acct.cgi
@@
-326,10
+326,22
@@
Service # <% $svcnum ? "<B>$svcnum</B>" : " (NEW)" %><BR>
</TD>
</TR>
% }
</TD>
</TR>
% }
-
+%
+%#dir
+%if ( $part_svc->part_svc_column('dir')->columnflag eq 'F'
+% || !$curuser->access_right('Edit home dir')
+% ) {
<INPUT TYPE="hidden" NAME="dir" VALUE="<% $svc_acct->dir %>">
<INPUT TYPE="hidden" NAME="dir" VALUE="<% $svc_acct->dir %>">
+% } else {
+
+
+ <TR>
+ <TD ALIGN="right">Home directory</TD>
+ <TD><INPUT TYPE="text" NAME="dir" VALUE="<% $svc_acct->dir %>"></TD>
+ </TR>
+% }
%
%#shell
%my $shell = $svc_acct->shell;
%
%#shell
%my $shell = $svc_acct->shell;