ModernLMS / moodle-availability_othercompleted

This plugin allow to restrict access of activities and resources in your course based on other course completion.
6 stars 12 forks source link

Doesn't work with "MUST NOT" #37

Open danweb80 opened 10 months ago

danweb80 commented 10 months ago

I need to show some activities when the student did not completed other course. So I put a restriction on "MUST NOT". But doesn't work...

Look how is setted: image

At this case, the student user has completed the other course and can access both contents... image

I'm using 4.3+ version. But I had the same problem with 4.1...

lorenagarcia-moodle commented 9 months ago

Hi!!

In case it's helpful, I wanted to mention that, in my case, I only reproduce the issue when I use the visibility eye of the restriction as hidden.

In particular:

In other words, the issue only occurs when the 'Must not' condition is combined with it being a non-visible condition.

The platform version is 4.1.4.

image

ak4t0sh commented 3 months ago

Issue appears as soon as the 'must not' condition is used (not related to restriction visibility). You can find a fix in #40