mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-04 10:39:47 -06:00
[server] Fix parent id check
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user