Team permission read is ignored if all permission fields are none #12183

Closed
opened 2025-11-02 10:01:21 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @YannMagnin on GitHub (Dec 12, 2023).

Description

When I try to change a team permission to read, the request is completely ignored if all fields of the permission map are set to none. I understand the idea behind this mechanism, but since the description of the read status is Members permissions will be decided by below permission table I'm questioning if its not a bug?

Would it be possible to explicit the read permission even if all fields are set to none ?

Gitea Version

1.21.1, 1.21.2

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux Mint, EndeavourOS

How are you running Gitea?

Official binaries, and running from systemd and command-line

Database

SQLite

Originally created by @YannMagnin on GitHub (Dec 12, 2023). ### Description When I try to change a team permission to `read`, the request is completely ignored if all fields of the permission map are set to `none`. I understand the idea behind this mechanism, but since the description of the `read` status is `Members permissions will be decided by below permission table` I'm questioning if its not a bug? Would it be possible to explicit the `read` permission even if all fields are set to `none` ? ### Gitea Version 1.21.1, 1.21.2 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Linux Mint, EndeavourOS ### How are you running Gitea? Official binaries, and running from systemd and command-line ### Database SQLite
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 10:01:21 -06:00
Author
Owner

@yp05327 commented on GitHub (Mar 11, 2024):

What do you mean if all fields of the permission map are set to none, normally they should not be none. 🤔

@yp05327 commented on GitHub (Mar 11, 2024): What do you mean `if all fields of the permission map are set to none`, normally they should not be `none`. 🤔
Author
Owner

@GiteaBot commented on GitHub (Apr 11, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Apr 11, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#12183