Code Monkey home page Code Monkey logo

Comments (1)

abias avatar abias commented on August 12, 2024

Hi @kinnectus ,

thank you for your proposal and sorry for my late reply.

I understand your scenario and your needs.

Currently, the plugin only has the local/bulkenrol:enrolusers capability which allows teacher to do everything the plugin provides - especially enrol users with the configured enrolment method and especially regardless if they are allowed to enrol users individually into the course.

I think a wise approach would be:

  • To introduce a new capability local/bulkenrol:use. This capability will control if a user sees the "User bulk enrolment" menu item or not and will have to be replaced in the existing has_capability() checks in lib.php and index.php
  • To introduce a new capability local/bulkenrol:adduserstogroup. This capability will allow users to add to create groups with the plugin and to add users to the groups.
  • To limit the scope of the existing capability local/bulkenrol:enrolusers to control if users are able to enrol users with the plugin into courses or not.
  • To enhance the language pack and existing get_string() calls in a way that all help texts and strings only show the possibilities a user has (i.e. to enrol users and / or to add users to groups)
  • To enhance the existing Behat tests
  • To enhance the README file
  • To update the CHANGES.de file

Currently and in the foreseeable future, we don't have the need and the ressources to implement this addition. However, I will be happy to review a well-crafted pull request of you if you have time to build one.

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.