[LON-CAPA-cvs] cvs: loncom / lond
www
www at source.lon-capa.org
Mon Oct 24 16:43:51 EDT 2011
www Mon Oct 24 20:43:51 2011 EDT
Modified files:
/loncom lond
Log:
Bug #1320
Index: loncom/lond
diff -u loncom/lond:1.481 loncom/lond:1.482
--- loncom/lond:1.481 Wed Aug 17 00:32:19 2011
+++ loncom/lond Mon Oct 24 20:43:51 2011
@@ -2,7 +2,7 @@
# The LearningOnline Network
# lond "LON Daemon" Server (port "LOND" 5663)
#
-# $Id: lond,v 1.481 2011/08/17 00:32:19 raeburn Exp $
+# $Id: lond,v 1.482 2011/10/24 20:43:51 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -60,7 +60,7 @@
my $status='';
my $lastlog='';
-my $VERSION='$Revision: 1.481 $'; #' stupid emacs
+my $VERSION='$Revision: 1.482 $'; #' stupid emacs
my $remoteVERSION;
my $currenthostid="default";
my $currentdomainid;
@@ -6730,8 +6730,7 @@
}
#
# Checks to see if the input roleput request was to set
-# an author role. If so, invokes the lchtmldir script to set
-# up a correct public_html
+# an author role. If so, creates construction space
# Parameters:
# request - The request sent to the rolesput subchunk.
# We're looking for /domain/_au
@@ -6741,16 +6740,15 @@
#
sub manage_permissions {
my ($request, $domain, $user, $authtype) = @_;
-
- &Debug("manage_permissions: $request $domain $user $authtype");
-
# See if the request is of the form /$domain/_au
if($request =~ /^(\/\Q$domain\E\/_au)$/) { # It's an author rolesput...
- my $execdir = $perlvar{'lonDaemons'};
- my $userhome= "/home/$user" ;
- &logthis("system $execdir/lchtmldir $userhome $user $authtype");
- &Debug("Setting homedir permissions for $userhome");
- system("$execdir/lchtmldir $userhome $user $authtype");
+ my $path="/home/httpd/html/priv/".$domain;
+ unless (-e $path) {
+ mkdir($path);
+ }
+ unless (-e $path.'/'.$user) {
+ mkdir($path.'/'.$user);
+ }
}
}
More information about the LON-CAPA-cvs
mailing list