From e562a244b6e0f6b413fee62da5e724137797df58 Mon Sep 17 00:00:00 2001 From: John Okely Date: Wed, 25 Feb 2015 14:31:20 +0800 Subject: [PATCH] MDL-35995 mod_glossary: Allow rating of unapproved glossary items --- mod/glossary/lib.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php index 7a3ab10c443..c7d8c4fa373 100644 --- a/mod/glossary/lib.php +++ b/mod/glossary/lib.php @@ -736,11 +736,6 @@ function glossary_rating_validate($params) { throw new rating_exception('invalidnum'); } - if (!$info->approved) { - //item isnt approved - throw new rating_exception('nopermissiontorate'); - } - //check the item we're rating was created in the assessable time window if (!empty($info->assesstimestart) && !empty($info->assesstimefinish)) { if ($info->timecreated < $info->assesstimestart || $info->timecreated > $info->assesstimefinish) {