pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.

Home Page:https://pterodactyl.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

itsvic-dev opened this issue · comments

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.