[server] Fix parent id check

This commit is contained in:
Abhishek Shroff
2024-11-20 08:47:47 +05:30
parent 309ea7a781
commit c0843966bb

View File

@@ -11,7 +11,7 @@ import (
)
func (r Resource) Move(target string, overwrite bool) (Resource, bool, error) {
if r.ParentID == nil {
if r.ParentID() == nil {
return Resource{}, false, ErrInsufficientPermissions
}