[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm

raeburn raeburn at source.lon-capa.org
Sun Sep 25 19:07:50 EDT 2011


raeburn		Sun Sep 25 23:07:50 2011 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  - In course context, redirect users with privs to viewclasslist 
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.357 loncom/interface/loncreateuser.pm:1.358
--- loncom/interface/loncreateuser.pm:1.357	Thu Sep  1 02:47:51 2011
+++ loncom/interface/loncreateuser.pm	Sun Sep 25 23:07:49 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.357 2011/09/01 02:47:51 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.358 2011/09/25 23:07:49 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4042,6 +4042,10 @@
     my ($permission,$allowed) = 
         &Apache::lonuserutils::get_permission($context,$crstype);
     if (!$allowed) {
+        if ($context eq 'course') {
+            $r->internal_redirect('/adm/viewclasslist');
+            return OK;
+        }
         $env{'user.error.msg'}=
             "/adm/createuser:cst:0:0:Cannot create/modify user data ".
                                  "or view user status.";




More information about the LON-CAPA-cvs mailing list