Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/quiz/report/grading/db/access.php
Go to the documentation of this file.
00001 <?php
00002 // This file is part of Moodle - http://moodle.org/
00003 //
00004 // Moodle is free software: you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation, either version 3 of the License, or
00007 // (at your option) any later version.
00008 //
00009 // Moodle is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 //
00014 // You should have received a copy of the GNU General Public License
00015 // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
00016 
00026 defined('MOODLE_INTERNAL') || die();
00027 
00028 $capabilities = array(
00029     // Is the user allowed to see the student's real names while grading?
00030     'quiz/grading:viewstudentnames' => array(
00031         'captype' => 'read',
00032         'contextlevel' => CONTEXT_MODULE,
00033         'legacy' => array(
00034             'teacher' => CAP_ALLOW,
00035             'editingteacher' => CAP_ALLOW
00036         ),
00037         'clonepermissionsfrom' =>  'mod/quiz:viewreports'
00038     ),
00039 
00040     // Is the user allowed to see the student's idnumber while grading?
00041     'quiz/grading:viewidnumber' => array(
00042         'captype' => 'read',
00043         'contextlevel' => CONTEXT_MODULE,
00044         'legacy' => array(
00045             'teacher' => CAP_ALLOW,
00046             'editingteacher' => CAP_ALLOW
00047         ),
00048         'clonepermissionsfrom' =>  'mod/quiz:viewreports'
00049     )
00050 );
 All Data Structures Namespaces Files Functions Variables Enumerations