fix: make WebDAV upload retry reliable
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user