Ore icon indicating copy to clipboard operation
Ore copied to clipboard

API Responses Differ

Open darbyjack opened this issue 3 years ago • 0 comments

Describe the bug

API response permissions are not being created properly.

To Reproduce

  1. Create an auth instance with an API key
  2. Take the session ID and send a request to the URL in the description above (LuckPerms), check the permission response output.

It will look like this when using a session created via an auth key (the key has view_public_info checked)

{
    "type": "project",
    "permissions": []
}

When you use a session created without an auth key, it will look like this:

{
    "type": "project",
    "permissions": [
        "view_public_info"
    ]
}

Expected behavior

Apikey sessions to have the view_public_info when selected during creation.

Screenshots

image

Environment

  • Windows 10

Additional context

darbyjack avatar Feb 17 '22 20:02 darbyjack