Users with an empty API Allow list can execute some API actions

    • S25-W46/47, S25-W48/49, S25-W50/51/52/01
    • 2

      There is a bug where if a user has Access to API enabled, but the Allow list is empty, they can still execute some API actions.

      Scenario:

      1. Edit the default User role, change API access from "Deny list" to "Allow list"
      2. Optional: for better demonstration you can also remove all other access, except API access has to be enabled (see image below)
      3. Create a regular user with this role
      4. Some API methods can still be called (when they shouldn't)
      5. Change the user role permissions again, in the Allow list add a single method
      6. Now only the allowed API method works (as expected)

      My user role config:

      Expected:

      As a user I would expect no API methods to work when the list is empty. This is further reinforced by the fact that they don't work when a single API method is added to the list.

        1. screenshot-1.png
          91 kB
          Janis Nulle
        2. screenshot-2.png
          5 kB
          Andrejs Griščenko
        3. screenshot-3.png
          4 kB
          Andrejs Griščenko
        4. screenshot-4.png
          16 kB
          Vladimirs Maksimovs

            Assignee:
            Andrejs Griščenko
            Reporter:
            Janis Nulle
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 34h
                34h