Skip to content

Cannot add attachment to issue without admin access #24944

Closed
@hakito

Description

@hakito

Description

I have an issue created by User A.

I try to add an attachment via API for user B. User B is in a Team with write permissions for issues (and everything else)

When I do an sudo upload for user B i get the error:

user should have permission to write issue

But the user has the permission. When I login as user B and do it via the web interface everything works fine.

It only works via API when I give the team admin access.

Gitea Version

1.20.0+dev-919-gf9cfd6ce5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

MySQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/criticalThis issue should be fixed ASAP. If it is a PR, the PR should be merged ASAPtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions