Skip to content

[API] incorrect permission values of repos if using notifications endpoints #19759

Closed
@qwerty287

Description

@qwerty287

Description

Requesting a notification endpoint returns wrong values of the permission object.
It always looks like:

{
    "admin": false,
    "push": false,
    "pull": true
}

even if I own the repo where it should be

{
    "admin": true,
    "push": true,
    "pull": true
}

Gitea Version

1.17.0 (also on try.gitea.io)

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build from source, from CLI

Database

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions