Skip to content
Snippets Groups Projects
Select Git revision
17 results Searching

utils.py

Forked from uffd / uffd
Source project has a limited visibility.
  • Julian's avatar
    3880be9a
    Fix regression in service overview access behavior · 3880be9a
    Julian authored
    When the service overview was introduced, it was meant to be optional. Thus
    if the SERVICES config option was empty (the default), uffd returned 404.
    
    Commit fa67bde0 (Migrate OAuth2 and API clients to database) introduced the
    regression that accessing the service overview page when no services are
    visible based on the permissions of the current user (or guest if not logged
    in), 404 is returned.
    
    This change fixes the regression and further changes the behavior to improve
    consistency. Since fa67bde0, the page is relevant to admin users regardless of
    the SERVICES config option. Therefore uffd asks for login or reports missing
    permissions in all cases it originally returned 404.
    3880be9a
    History
    Fix regression in service overview access behavior
    Julian authored
    When the service overview was introduced, it was meant to be optional. Thus
    if the SERVICES config option was empty (the default), uffd returned 404.
    
    Commit fa67bde0 (Migrate OAuth2 and API clients to database) introduced the
    regression that accessing the service overview page when no services are
    visible based on the permissions of the current user (or guest if not logged
    in), 404 is returned.
    
    This change fixes the regression and further changes the behavior to improve
    consistency. Since fa67bde0, the page is relevant to admin users regardless of
    the SERVICES config option. Therefore uffd asks for login or reports missing
    permissions in all cases it originally returned 404.