forgejo/release-notes/8.0.0/fix
Earl Warren 09f3518069
fix(hook): repo admins are wrongly denied the right to force merge
The right to force merge is uses the wrong predicate and
applies to instance admins:

  ctx.user.IsAdmin

It must apply to repository admins and use the following predicate:

 ctx.userPerm.IsAdmin()

This regression is from the ApplyToAdmins implementation in
79b7089360.

Fixes: https://codeberg.org/forgejo/forgejo/issues/3780
2024-06-02 21:16:46 +02:00
..
3363.md fix(Dockerfile.rootless): revert to default path for app.ini 2024-04-26 21:30:10 +02:00
3430.md docs(release-notes): split items in files to avoid conflicts (#3452) 2024-04-26 08:26:33 +00:00
3442.md docs(release-notes): split items in files to avoid conflicts (#3452) 2024-04-26 08:26:33 +00:00
3729.md [skip ci] docs(release-notes): 7.0.3 2024-05-22 12:34:50 +02:00
3864.md add release-notes 2024-05-22 12:59:41 +02:00
3904.md fix(services): set SendNotificationEmailOnNewUser 2024-05-25 16:27:44 +02:00
3922.md Update module github.com/alecthomas/chroma/v2 to v2.14.0 (take 2) 2024-05-30 22:52:26 +02:00
3935.md migrations: Map non-existant external users to Ghost 2024-05-28 12:40:11 +02:00
3976.md fix(hook): repo admins are wrongly denied the right to force merge 2024-06-02 21:16:46 +02:00