Skip to content

Permission for API customfields policy has no effect #7250

Closed
@mskrip

Description

Please confirm you have done the following before posting your bug report:

Describe the bug

Admin user has permission to GET access /api/v1/fieldsets but doesn't have permission for /api/v1/fieldsets/{id}, /api/v1/fields, or /api/v1/fields/{id}

To Reproduce
Steps to reproduce the behavior:

  1. Make a GET request to /api/v1/fieldsets/1 with admin user's API key.
  2. Get a 403 response

Expected behavior
The endpoint should be accessible to admin users.

Server (please complete the following information):

  • v4.7.5
  • OS: Arch
  • PHP Version: 7.3.7

Desktop (please complete the following information):

  • OS: Arch
  • Browser chrome
  • Version 75.0.3770.100

This also happens on clean install. I've also tried manually adding permissions to the user for customfields policy but it didn't help.

This issue appears to be API specific. In GUI admin user can both view and edit custom fields.

Metadata

Assignees

No one assigned

    Labels

    ✋ bugConfirmed bug👩‍💻 ready for devThese issues are ready for someone to work on them - take your pick!

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions