mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 19:11:25 +01:00
fix(team,repo,org,wiki,auth): detect a kept admin permission, validate topics up front, page public members, name disabled wikis, treat auth switch's account as --user
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
12 files changed
+289
-64
No files matched your search
@@ -80,6 +80,8 @@ func TestWikiEditRefusesToOverwriteOrCreate(t *testing.T) {
|
||||
case r.Method == http.MethodPatch:
|
||||
patched++
|
||||
_, _ = w.Write([]byte(`{"title":"Getting Started","content_base64":"eA=="}`))
|
||||
case r.URL.Path == "/api/v1/repos/alice/x":
|
||||
_, _ = w.Write([]byte(`{"full_name":"alice/x","has_wiki":true}`))
|
||||
case r.URL.Path == "/api/v1/repos/alice/x/wiki/page/Draft":
|
||||
_, _ = w.Write([]byte(`{"title":"Draft","content_base64":"ZHJhZnQ="}`))
|
||||
case r.URL.Path == "/api/v1/repos/alice/x/wiki/page/Page B":
|
||||
|
||||
Reference in new issue
Block a user