version 1.1, 2011/12/28 21:49:54
|
version 1.3, 2011/12/28 22:41:02
|
Line 64 and/or resources during an exam.
|
Line 64 and/or resources during an exam.
|
|
|
=back |
=back |
|
|
=cut; |
=cut |
|
|
package Apache::lonblockingmenu; |
package Apache::lonblockingmenu; |
|
|
Line 98 sub handler {
|
Line 98 sub handler {
|
|
|
# ----------------------------------------------------------- Permissions check |
# ----------------------------------------------------------- Permissions check |
|
|
unless ((!&Apache::lonnet::allowed('dcm',$env{'request.course.id'})) || |
unless ((&Apache::lonnet::allowed('dcm',$env{'request.course.id'})) || |
(!&Apache::lonnet::allowed('dcm',$env{'request.course.id'}. |
(&Apache::lonnet::allowed('dcm',$env{'request.course.id'}. |
'/'.$env{'request.course.sec'}))) { |
'/'.$env{'request.course.sec'}))) { |
|
$env{'user.error.msg'}= |
|
"/adm/setblock:dcm:0:0:Cannot set blocking of communications in a course"; |
return HTTP_NOT_ACCEPTABLE; |
return HTTP_NOT_ACCEPTABLE; |
} |
} |
|
|