芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/public_html/cepali/mod/lti/db/access.php
. /** * This file contains the capabilities used by the lti module * * @package mod_lti * @copyright 2009 Marc Alier, Jordi Piguillem, Nikolas Galanis, marc.alier@upc.edu * @copyright 2009 Universitat Politecnica de Catalunya http://www.upc.edu * @author Marc Alier * @author Jordi Piguillem * @author Nikolas Galanis * @author Chris Scribner * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die; $capabilities = array( // Whether the user can see the link to the external tool and follow it. 'mod/lti:view' => array( 'captype' => 'read', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'student' => CAP_ALLOW, 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ), // Add an External tool activity to a course. 'mod/lti:addinstance' => array( 'riskbitmask' => RISK_XSS, 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ), 'clonepermissionsfrom' => 'moodle/course:manageactivities' ), // When the user arrives at the external tool, if they have this capability // in Moodle, then they are given the Instructor role in the remote system, // otherwise they are given Learner. See the lti_get_ims_role function. 'mod/lti:manage' => array( 'riskbitmask' => RISK_PERSONAL, // A bit of a guess, but seems likely. 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE, 'archetypes' => array( 'teacher' => CAP_ALLOW, 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ), // When the user arrives at the external tool, if they have this capability // in Moodle, then they are given the Administrator role in the remote system, // otherwise they are given Learner. See the lti_get_ims_role function. 'mod/lti:admin' => array( 'riskbitmask' => RISK_PERSONAL, // A bit of a guess, but seems likely. 'captype' => 'write', 'contextlevel' => CONTEXT_MODULE ), // The ability to create or edit tool configurations for particular courses. 'mod/lti:addcoursetool' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ), // The ability to request the administrator to configure a particular // External tool globally. 'mod/lti:requesttooladd' => array( 'captype' => 'write', 'contextlevel' => CONTEXT_COURSE, 'archetypes' => array( 'editingteacher' => CAP_ALLOW, 'manager' => CAP_ALLOW ) ) );