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

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sun, 23 Dec 2007 03:21:32 -0000


raeburn		Sat Dec 22 22:21:32 2007 EDT

  Modified files:              
    /loncom/interface	lonuserutils.pm 
  Log:
  Display List of Users - domain context.
  DC can modify co-author roles in construction spaces from domain of current DC role.
  
  
Index: loncom/interface/lonuserutils.pm
diff -u loncom/interface/lonuserutils.pm:1.30 loncom/interface/lonuserutils.pm:1.31
--- loncom/interface/lonuserutils.pm:1.30	Sat Dec 22 22:16:30 2007
+++ loncom/interface/lonuserutils.pm	Sat Dec 22 22:21:28 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Utility functions for managing LON-CAPA user accounts
 #
-# $Id: lonuserutils.pm,v 1.30 2007/12/23 03:16:30 raeburn Exp $
+# $Id: lonuserutils.pm,v 1.31 2007/12/23 03:21:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2047,6 +2047,11 @@
                                     $env{'request.role.domain'})) {
                                 $canchange{$role} = 1;
                             }
+                        } elsif ($setting eq 'author') {
+                            if (&Apache::lonnet::allowed('c'.$role,
+                                    $env{'request.role.domain'})) {
+                                $canchange{$role} = 1;
+                            }
                         }
                     } elsif ($context eq 'author') {
                         if (&Apache::lonnet::allowed('c'.$role,