Skip to content

Role permissions are not getting correctly deserialized  #364

@endpointemail

Description

@endpointemail
  • 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions