Skip to content
Snippets Groups Projects
  1. 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
  2. Apr 19, 2016
  3. Nov 27, 2015
  4. Oct 27, 2015
  5. Sep 02, 2015
  6. Sep 01, 2015
  7. Jul 12, 2015
  8. May 15, 2015
    • Christopher Smith's avatar
      Changes for PHP 7 Compatibility · 26e22ab8
      Christopher Smith authored
      - replace PHP4 style class constructor function names (based on
        class name) with php 5 __construct()
      Also remove some '&' reference operators used with objects
      And add some object type hints
      26e22ab8
  9. Mar 18, 2015
    • Andreas Gohr's avatar
      SECURITY escape user properties in user manager #1081 · f23f9594
      Andreas Gohr authored
      The user properties (login, real name, etc) where not properly escaped
      in the user manager's edit form. This allowed a XSS attack on the
      superuser by registered users.
      
      Thanks to Filippo Cavallarin from www.segment.technology for discovering
      this bug.
      f23f9594
  10. Mar 12, 2015
  11. Oct 01, 2014
  12. Sep 29, 2014
  13. Mar 05, 2014
  14. Mar 02, 2014
  15. Feb 16, 2014
  16. Feb 15, 2014
  17. Dec 01, 2013
  18. Nov 27, 2013
  19. Sep 22, 2013
  20. Sep 21, 2013
  21. Sep 20, 2013
  22. Sep 11, 2013
  23. Aug 23, 2013
  24. Aug 22, 2013
  25. Aug 03, 2013
  26. Aug 02, 2013
  27. Aug 01, 2013
  28. Jul 31, 2013
Loading