client version

This commit is contained in:
m
2026-09-05 11:28:21 +02:00
parent 8982e96197
commit c7467ea8f9
4 changed files with 94 additions and 11 deletions
+15 -1
View File
@@ -1,5 +1,19 @@
package services
func (s *Services) UploadDocument() {
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
}