svc_acct.dir should be editable with ACL (#1730)
authorjeff <jeff>
Wed, 18 Jul 2007 03:24:25 +0000 (03:24 +0000)
committerjeff <jeff>
Wed, 18 Jul 2007 03:24:25 +0000 (03:24 +0000)
FS/FS/AccessRight.pm
httemplate/edit/svc_acct.cgi

index 7a8bfc2..de3423a 100644 (file)
@@ -117,6 +117,7 @@ assigned to users and/or groups.
 # customer service rights
 ###
   'Edit usage', #NEW
+  'Edit home dir', #NEW
   'Edit www config', #NEW
   'View customer services', #NEW
   'Provision customer service',
index e0610b2..d4adbc9 100755 (executable)
@@ -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;