banniere legacy + base

This commit is contained in:
m
2026-09-10 07:09:19 +02:00
parent 8ff2339c8a
commit 77d2ea8356
12 changed files with 0 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
package services
import (
"fmt"
"github.com/vaultdrop/backend/entities"
)
func (s *Services) UploadDocument(file *string, destination *entities.Document) error {
if canEdit, _ := UserCanEditDocument(s.ConnectedUser, destination); !canEdit {
return fmt.Errorf("Can not edit")
}
entities.NewDocument("test", entities.FILE)
return nil
}