mirror of
https://github.com/moodle/moodle.git
synced 2025-04-23 09:23:09 +02:00
MDL-35995 mod_glossary: Allow rating of unapproved glossary items
This commit is contained in:
parent
dba564c7db
commit
e562a244b6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user