vfremaux / moodle-availability_days

Allows activating activities or sections at a delayed day offset from course aperture
9 stars 14 forks source link

"must not" restriction does not work properly #6

Open heather-williams opened 6 years ago

heather-williams commented 6 years ago

I'm using a Moodle 3.1 site with the Restriction by days offset from start plug-in. I have it set to use the enrollment date. My goal is to have it so a user can only see an activity for so many days after their enrollment date.

Here is my test case scenario:

I have an activity (SCORM in this case) with two restrictions, the user has to mark another activity as complete and then student "must not" match the following: Days from start "3".

My user was enrolled on 11/26 and today is 11/28. The SCORM appears available to my user, however when I click on the SCORM to activity I receive an error that says "Sorry, this activity is currently hidden". It is not hidden in any way and if I remove the days restriction from the SCORM then my user can access it just fine.

Is this a bug or am I not understanding how this should work?

vfremaux commented 6 years ago

Hi Heather, the day is a a day shift, running from 0 so, 1 day should release on 11/27, 2 days on 11/28 and 3 days on 11/29 not 11/28

Cheers

heather-williams commented 6 years ago

Wouldn't that be if we were using "must" and not "must not"? I would think "must not" means it would only be available for 3 days after enrollment?