Skip to content
Snippets Groups Projects
  1. Nov 25, 2018
  2. Nov 20, 2018
  3. Nov 11, 2018
  4. Nov 08, 2018
  5. Nov 03, 2018
  6. Oct 30, 2018
    • Andreas Gohr's avatar
      add event to check access to admin plugins · 64cdf779
      Andreas Gohr authored
      This adds a new method that capsulates the access check that has to be
      done to decide if an admin plugin's page should be shown to the user.
      The default implementation is the same as before, relying only on the
      forAdminOnly() method and the users' isadmin or ismanager status.
      
      Admin plugins themselves can override the method to do additional
      checks. In this patch, I added that to the usermanager plugin which will
      only return true if the current auth backend can list users.
      
      However the real idea behind this change is that the new method emits a
      new event called ADMINPLUGIN_ACCESS_CHECK which would allow plugins to
      overwrite it. This way it could be possible to give certain user groups
      access to certain admin plugins without giving them admin or manager
      permissions.
      
      Note: this does not change how the "Admin" link is shown, it still
      depends on ismanager or isadmin. A plugin as mentioned above would need
      to influence the display via the MENU_ITEMS_ASSEMBLY event.
      
      Note: this only covers the basic access check. Admin plugins may need
      further adjustments for access to other parts of the plugin (like AJAX
      components). An additional commit will update this for the bundled
      plugins.
      64cdf779
  7. Oct 11, 2018
  8. Sep 27, 2018
  9. Sep 19, 2018
  10. Aug 24, 2018
  11. Aug 04, 2018
  12. Jul 27, 2018
  13. Jun 08, 2018
  14. May 16, 2018
  15. May 13, 2018
  16. Apr 27, 2018
  17. Apr 25, 2018
  18. Apr 24, 2018
  19. Apr 23, 2018
  20. Apr 20, 2018
  21. Apr 17, 2018
  22. Mar 25, 2018
  23. Mar 23, 2018
  24. Mar 06, 2018
  25. Mar 05, 2018
  26. Feb 14, 2018
  27. Feb 10, 2018
  28. Jan 21, 2018
  29. Jan 14, 2018
  30. Jan 10, 2018
  31. Jan 07, 2018
  32. Jan 05, 2018
  33. Jan 03, 2018
  34. Dec 28, 2017
  35. Dec 19, 2017
Loading