Skip to content
Snippets Groups Projects
  1. Dec 18, 2022
    • Ilja's avatar
      Don't call reports count when not privileged · 3d4e9394
      Ilja authored and Haelwenn's avatar Haelwenn committed
      The sidebar shows the report count. Even when not privileged, the call was done to get the count.
      3d4e9394
    • Ilja's avatar
      Keep hidden routes hidden · 0f2388df
      Ilja authored and Haelwenn's avatar Haelwenn committed
      0f2388df
    • Ilja's avatar
      Correct order of routes · 59d96234
      Ilja authored and Haelwenn's avatar Haelwenn committed
      We check for the first unhidden route, so the order needs to match the order on the sidebar. This is now fixed.
      59d96234
    • Hélène's avatar
      Apply 1 suggestion(s) to 1 file(s) · 3fb1ec2c
      Hélène authored and Haelwenn's avatar Haelwenn committed
      3fb1ec2c
    • Ilja's avatar
      Statuses "Change scope" dropdown · 0449d13c
      Ilja authored and Haelwenn's avatar Haelwenn committed
      0449d13c
    • Ilja's avatar
      Don't show create new account button if not privileged · 4aeaaa16
      Ilja authored and Haelwenn's avatar Haelwenn committed
      In view Users
      4aeaaa16
    • Ilja's avatar
      Add privileges to Moderator dropdown · 3d849771
      Ilja authored and Haelwenn's avatar Haelwenn committed
      A dropdown in Users and Statuses views.
      3d849771
    • Ilja's avatar
      Add privileges to "Moderate multiple users" dropdown · 9fa1902f
      Ilja authored and Haelwenn's avatar Haelwenn committed
      This is a Dropdown in the Users tab.
      There's still the problem that a non-admin is unaware when TagPolicy is enabled or not.
      If that can be fixed, it will work properly with current implementation.
      9fa1902f
    • Ilja's avatar
      Fix redirect after login and do sidebar differently · 906f6880
      Ilja authored and Haelwenn's avatar Haelwenn committed
      I noticed that the routes have an option `hidden`. This is what's used to show or hide items in the sidebar.
      Now we set this option after login before adding the routes.
      
      The redirect for root is now also set after login before adding the route.
      That way we can set the route to the path corresponding with the first item in the sidebar.
      When there's no unhidden route (e.g. when admin-fe doesn't know about any privilege the user has), the redirect goes to /401.
      906f6880
    • Ilja's avatar
      Filter sidebar menu's that user isn't privileged for · de16da3c
      Ilja authored and Haelwenn's avatar Haelwenn committed
      = This is a combination of 2 commits.
      = This is the 1st commit message:
      
      Atm you're redirected to /users after login even when you aren't privileged to any of the user actions. This should be addressed in a following commit.
      
      It will only show the menu's on the left for which you are privileged. This can be depending on role (e.g. settings for admin) or privilege (e.g. user actions).
      
      = This is the 2nd commit message:
      
      It will only show the menu's on the left for which you are privileged. This is depending on privileges.
      
      The redirect for root is now also set after login before adding the route.
      That way we can set the route to the path corresponding with the first item in the sidebar.
      When there's no unhidden route (e.g. when admin-fe doesn't know about any privilege the user has), the redirect goes to /401.
      de16da3c
    • Ilja's avatar
      Make sure non-admin can log in · d042d308
      Ilja authored and Haelwenn's avatar Haelwenn committed
      For some reason it checks if the roles are alredy filled in.
      But roles can be empty now, so instead we also check if privileges are empty.
      d042d308
    • Ilja's avatar
      Add privileges after login · bc2a600f
      Ilja authored and Haelwenn's avatar Haelwenn committed
      bc2a600f
  2. Sep 02, 2022
  3. Aug 08, 2022
  4. Aug 07, 2022
Loading