Up to [LON-CAPA] / loncom / auth
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Current tag: version_2_11_0_RC2
- Bug 6518 - Exam blocks can also block access to specified folders and/or resources for the duration of an exam. - Start time for blocking can be based on activation of the timer for a specific timed quiz item (map or resource-specific). End time for blocking is then start time plus the duration of the timed interval. lonnet.pm: - &rolesinit() now returns an array containing references to hashes for the following: userroles, firstaccenv, timerintenv. - New db file: timerinterval.db contains interval which applied when user activated timer for a map or resource for which time limit applied. - needed to determine end time for exam blocks which are triggered by timer activation. - New routine &get_comm_blocks() used to get communication/collaboration blocks from a course. Now cached for 10 minutes in memcached. - New routine: &has_comm_blocking() used to determine if exam block applies to display of requested content item in a course. Used by &allowed(). - new routine: &check_docs_block() used by &has_comm_blocking(). loncommon.pm: - new items added to user's environment by &init_user_environment() - $env{'course.courseid.firstaccess.symb'} and $env{'course.courseid.timerinterval.symb'} where symb is the symb of the resource or map which provides the activation-based block for access to specific content. blockedaccess.pm: - now called when access to content is blocked by an exam block. duration, and setter of block now available in pop-up from: &loncommon::blocking_status() for this type of access control.