summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorjeff <jeff>2007-07-18 03:23:29 +0000
committerjeff <jeff>2007-07-18 03:23:29 +0000
commit401a7e924a25f4364d55d2914c0840831957a967 (patch)
treec5ab6e9eb73567ce1aa82fb5c3e914a28afc7c46 /httemplate
parentdb0a14018d1ce8e2b69ee46a57304007f5dca6e4 (diff)
svc_acct.dir should be editable with ACL (#1730)
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/edit/svc_acct.cgi14
1 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/edit/svc_acct.cgi b/httemplate/edit/svc_acct.cgi
index e0610b22f..d4adbc9e5 100755
--- 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>
% }
-
+%
+%#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 %>">
+% } 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;