Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed mod/lesson:view
  • Loading branch information
vyshane committed Sep 22, 2006
1 parent e5d83d6 commit 94bcea7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 19 deletions.
14 changes: 0 additions & 14 deletions mod/lesson/db/access.php
Expand Up @@ -6,20 +6,6 @@
*/
$mod_lesson_capabilities = array(

'mod/lesson:view' => array(

'captype' => 'read',
'contextlevel' => CONTEXT_MODULE,
'legacy' => array(
'guest' => CAP_ALLOW,
'student' => CAP_ALLOW,
'teacher' => CAP_ALLOW,
'editingteacher' => CAP_ALLOW,
'coursecreator' => CAP_ALLOW,
'admin' => CAP_ALLOW
)
),

'mod/lesson:edit' => array(

'riskbitmask' => RISK_XSS,
Expand Down
3 changes: 1 addition & 2 deletions mod/lesson/highscores.php
Expand Up @@ -21,8 +21,7 @@

$context = get_context_instance(CONTEXT_MODULE, $cm->id);

require_capability('mod/lesson:view', $context);


switch ($mode) {
case 'add':
// Ensure that we came from view.php
Expand Down
3 changes: 1 addition & 2 deletions mod/lesson/mediafile.php
Expand Up @@ -34,8 +34,7 @@
}

require_login($course->id, false, $cm);
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
require_capability('mod/lesson:view', $context);


// get the mimetype
//$path_parts = pathinfo('http://www.apple.com'); //$lesson->mediafile
Expand Down
1 change: 0 additions & 1 deletion mod/lesson/view.php
Expand Up @@ -19,7 +19,6 @@
require_login($course->id, false, $cm);

$context = get_context_instance(CONTEXT_MODULE, $cm->id);
require_capability('mod/lesson:view', $context);

/// Check these for students only TODO: Find a better method for doing this!
/// Check lesson availability
Expand Down

0 comments on commit 94bcea7

Please sign in to comment.