Skip to content

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

Closed
@yp05327

Description

@yp05327

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions