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. Dec 06, 2017
  3. Feb 05, 2017
  4. Feb 04, 2017
  5. Jan 31, 2017
  6. Jan 21, 2017
    • Andreas Gohr's avatar
      fixed access to wrong variable · eb8a8555
      Andreas Gohr authored
      eb8a8555
    • Andreas Gohr's avatar
      Adds proper styling for new Admin UI · 713faa94
      Andreas Gohr authored
      713faa94
    • Andreas Gohr's avatar
      refactor Admin UI · 0470c28f
      Andreas Gohr authored
      This introduces a new dokuwiki\Ui namespace and refactors the Admin
      screen into a Ui class. The ultimate goal is to split up the big,
      complex functions in inc\html.php in better maintainable classes in the
      Ui namespace. This is the first go at it. Others function->class
      conversions should follow.
      
      This also switches the icons for our base admin plugins to inline SVG.
      (files and styling not included, yet).
      0470c28f
Loading