fix: make WebDAV upload retry reliable

This commit is contained in:
OpenClaw Agent
2026-09-17 06:41:35 +08:00
parent efb2ff33b4
commit 40d99e1e22
5 changed files with 59 additions and 7 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ func (a *App) storageForTask(t *Task) (RemoteStorage, string, bool) {
if a.db.First(&user, t.UserID).Error != nil {
return nil, "", false
}
if !a.hasPermission(user.ID, PermWebDAV) {
if user.Role != RoleAdmin && !a.hasPermission(user.ID, PermWebDAV) {
return nil, "", false
}
// Regular users use the system/global WebDAV only. They cannot override