[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf
raeburn
raeburn at source.lon-capa.org
Sun Apr 2 16:25:33 EDT 2023
raeburn Sun Apr 2 20:25:33 2023 EDT
Modified files:
/loncom loncapa_apache.conf
Log:
- Bug 6979
Directive for /adm/courseuser, used to check if a user has a role
(active, future or previous) in a course. Returns JSON data to ajax caller.
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.279 loncom/loncapa_apache.conf:1.280
--- loncom/loncapa_apache.conf:1.279 Sat Dec 31 14:09:01 2022
+++ loncom/loncapa_apache.conf Sun Apr 2 20:25:33 2023
@@ -2,7 +2,7 @@
## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
##
-# $Id: loncapa_apache.conf,v 1.279 2022/12/31 14:09:01 raeburn Exp $
+# $Id: loncapa_apache.conf,v 1.280 2023/04/02 20:25:33 raeburn Exp $
#
# LON-CAPA Section (extensions to httpd.conf daemon configuration)
@@ -776,6 +776,17 @@
ErrorDocument 500 /adm/errorhandler
</Location>
+<Location /adm/courseuser>
+AuthType LONCAPA
+Require valid-user
+PerlAuthzHandler Apache::lonacc
+SetHandler perl-script
+PerlHandler Apache::loncourseuser
+ErrorDocument 403 /adm/login
+ErrorDocument 406 /adm/roles
+ErrorDocument 500 /adm/errorhandler
+</Location>
+
<Location /adm/login>
SetHandler perl-script
PerlHandler Apache::lonlogin
More information about the LON-CAPA-cvs
mailing list