mdjnelson / moodle-mod_customcert

Enables the creation of dynamically generated certificates with complete customisation via the web browser.
https://moodle.org/plugins/mod_customcert
GNU General Public License v3.0
91 stars 158 forks source link

Setting: View a custom certificate mod/customcert:view to "allow" exposes users across all cohorts #469

Closed Helicopter9005 closed 2 years ago

Helicopter9005 commented 2 years ago

Hello,

Firstly thanks for the great customer certificate plugin - it is awesome!

Our goal is to setup different cohorts and teachers for each cohort that need to monitor the progress and certificates for each student that belongs to the same cohort like the teacher.

We've set up the cohorts and groups, so that the users don't see each other.

When we set "View a custom certificate mod/customcert:view" to "allow" it exposes users across all cohorts.

We do the setup in the following way:

  1. Setup a new role with the ARCHETYPE: Teacher (non-editing)
  2. Change the activity: View a custom certificatemod/customcert:view to "Allow"

Then login as a user with the role you just setup and:

  1. Go to any course you are enrolled in and click on the participants overview ( my.moodle.website/course/view.php?id=28 )

image

  1. Here the teacher only sees the students of their cohort - which is fine. ( my.moodle.website/user/index.php?id=28 ) image

  2. If the teacher clicks someone on the participants list - it will take them to the profile page of the user ( my.moodle.website/user/view.php?id=522&course=28 )

  3. Click on "My certificates" under the "Miscellaneous" section

image

  1. Then click on Dashboard > Users at the top of the page ( my.moodle.website/mod/customcert/my_certificates.php?userid=522 )

image

  1. You are taken to a page where you then see all the users in the system. It is not limited by cohort, course, group. ( my.moodle.website/user/index.php?id=1 ) image

How can we stop this from happening?

Thanks!

Helicopter9005 commented 2 years ago

Hi!

Any chance we can get some help on this please - it would be really appreciated? I have been looking for days now and we have no idea how to resolve it...

We are using moodle 3.9.9 and 3.9.10

Thanks! Helic

Helicopter9005 commented 2 years ago

Apologies I accidentally closed it.

ramizibrahimovic commented 2 years ago

Good question! I had the same issue couple of years ago but never managed to solve it.

mdjnelson commented 2 years ago

Cherry-picked. Thanks @brendanheywood.