Permalink
Browse files

MDL-20928 fixed glossary entry access control

  • Loading branch information...
1 parent d57861e commit d9f9e5662b4ae6442034f65d2f255a91de53d7ba @skodak skodak committed Nov 22, 2009
Showing with 0 additions and 6 deletions.
  1. +0 −6 mod/glossary/showentry.php
@@ -42,13 +42,7 @@
}
if ($entries) {
- $modinfo = get_fast_modinfo($course);
foreach ($entries as $key => $entry) {
- // make sure the entry is visible
- if (empty($modinfo->cms[$entry->cmid]->uservisible)) {
- unset($entries[$key]);
- continue;
- }
if (!$entry->approved and ($USER->id != $entry->userid)) {
$context = get_context_instance(CONTEXT_MODULE, $entry->cmid);
if (!has_capability('mod/glossary:approve', $context)) {

0 comments on commit d9f9e56

Please sign in to comment.