Skip to content

[bug] Don't show "limit-info" div if API does not return any check #819

Closed
@pandafy

Description

@pandafy

Describe the bug

If the logged-in user's RadiusGroup does not define any checks, then an empty box is shown where the user's usage is shown.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Setup WiFi Login Pages with OpenWISP RADIUS
  2. Register with a user on WLP
  3. In OpenWISP, change the Radius Group of the user to power-users.
  4. Login to WLP with this user

Expected behavior
The empty div should not appear if the API endpoint returns an empty list for checks.

Add an automated test for this case.

Screenshots
Screenshot from 2024-09-11 22-41-15

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions