mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[PR #325] [MERGED] fix: auth precedence #567
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/sigoden/dufs/pull/325
Author: @sigoden
Created: 12/21/2023
Status: ✅ Merged
Merged: 12/21/2023
Merged by: @sigoden
Base:
main← Head:feat-auth📝 Commits (1)
7d97e04feat: auth precedence📊 Changes
3 files changed (+68 additions, -31 deletions)
View changed files
📝
src/auth.rs(+46 -28)📝
src/server.rs(+3 -3)📝
tests/auth.rs(+19 -0)📄 Description
The more specific a path is, the higher its priority.
Let me take
user:pass@/dir1:rw,/dir1/test.txtas an example:/dir1/test.txtwill be readonly, as/dir1/test.txtis more specific than/dir1:rw.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.