Code Monkey home page Code Monkey logo

Comments (3)

abias avatar abias commented on August 12, 2024

Hi Luca,

thank you for raising this issue!

If you look at https://github.com/moodleuulm/moodle-local_bulkenrol#capabilities, you will see:

By default, Moodle users are not allowed to use the functionality provided by this plugin. As administrator, you can selectively grant users the ability to use this functionality by adding the local/bulkenrol:enrolusers capability to an appropriate Moodle role.

We built it that way by purpose as we thought that not every teacher should be able to use the bulk enrolment tool just by installing this plugin. The admin should think first which role should be able to use this tool or not.

However, I would agree that managers could / should be able to use this tool by default.

Would it be ok for you if I just added the manager archetype to db/access.php, but not the editingteacher archetype?

Cheers,
Alex

from moodle-local_bulkenrol.

lucaboesch avatar lucaboesch commented on August 12, 2024

Dear Alex

Yes, sure.
That's exactly the spirit. The editingtecher has to be 'unlocked' with purpose. But manager should get the cap automatically.

My code should have looked like this


'archetypes' => array(
            'manager' => CAP_ALLOW
        ),        

Best,
Luca

from moodle-local_bulkenrol.

abias avatar abias commented on August 12, 2024

Thank you, Luca.

This has been implemented now in 8a7a585.

Cheers,
Alex

from moodle-local_bulkenrol.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.