Skip to content

Subuser permissions sometimes get saved as an object instead of an array #5062

@itsvic-dev

Description

@itsvic-dev

Current Behavior

As is said in the title.
image

Expected Behavior

Subuser permissions should be an array.

Steps to Reproduce

  1. Invite a subuser.
  2. Fiddle around with the permissions for a while, saving multiple times.
  3. Hopefully after a while you get the following error, and the permissions attribute becomes an object.
Uncaught TypeError: subuser.permissions.filter is not a function

image

Panel Version

1.11.5

Wings Version

1.11.11

Games and/or Eggs Affected

No response

Docker Image

No response

Error Logs

No response

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.
  • I have provided all relevant details, including the specific game and Docker images I am using if this issue is related to running a server.
  • I have checked in the Discord server and believe this is a bug with the software, and not a configuration issue with my specific system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions