Org team users who have wiki write permission can not delete wiki page #10655

Closed
opened 2025-11-02 09:14:35 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @yp05327 on GitHub (Apr 14, 2023).

Description

Background error:
image

If users also have code write permission, they can delete wiki pages.
So delete wiki pages needs write permission of both Code and Wiki.

But users can create/edit wiki page if they have only wiki write permission.
Backend only check wiki write permission:
image
Have no idea about the correct design.

Gitea Version

1.20.0+dev-449-g8d21b6925

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?

gitea.com

Database

None

Originally created by @yp05327 on GitHub (Apr 14, 2023). ### Description Background error: ![image](https://user-images.githubusercontent.com/18380374/231958474-dec3afbe-b313-461b-b6dc-723f428695d4.png) If users also have code write permission, they can delete wiki pages. So delete wiki pages needs write permission of both `Code` and `Wiki`. But users can create/edit wiki page if they have only wiki write permission. Backend only check wiki write permission: ![image](https://user-images.githubusercontent.com/18380374/231962919-d3ccab85-99c2-4f0e-b24c-09234758d2be.png) Have no idea about the correct design. ### Gitea Version 1.20.0+dev-449-g8d21b6925 ### 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? gitea.com ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:14:35 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10655