Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role permissions are not getting correctly deserialized #364

Closed
endpointemail opened this issue Jan 7, 2025 · 0 comments
Closed

Role permissions are not getting correctly deserialized #364

endpointemail opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels

Comments

@endpointemail
Copy link

  • Redmine version: 4.2.1.stable
  • Redmine.Net.Api version: 4.3.0
  • Serialization type: json

When I load a specific role e.g. in postman (e.g. /roles/1.json), then I get the following response:

{
  "role": {
    "id": 1,
    "name": "Example",
    ...,
    ...,
    ...,
    "permissions": [
      "save_queries",
      "view_time_entries",
      "view_wiki_pages",
      "view_wiki_edits"
    ]
  }
}

But if I do the same in code:
image

The permissions are not deserialized correctly, and their count is wrong too.

@zapadi zapadi self-assigned this Jan 7, 2025
@zapadi zapadi added the bug label Jan 7, 2025
zapadi added a commit that referenced this issue Jan 9, 2025
@zapadi zapadi closed this as completed in c57e770 Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants