Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with "MUST NOT" #37

Open
danweb80 opened this issue Nov 25, 2023 · 2 comments
Open

Doesn't work with "MUST NOT" #37

danweb80 opened this issue Nov 25, 2023 · 2 comments

Comments

@danweb80
Copy link

danweb80 commented Nov 25, 2023

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
Copy link

lorenagarcia-moodle commented Dec 11, 2023

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:

  • Must have completed X course (eye open): works

  • Must have completed X course (eye closed): works

  • Must not have completed X course (eye open): works

  • Must not have completed X course (eye closed): doesn't work

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 added a commit to andil-elearning/moodle-availability_othercompleted that referenced this issue Jun 10, 2024
@ak4t0sh
Copy link

ak4t0sh commented Jun 10, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants