bump reva to latest edge

to get https://github.com/cs3org/reva/pull/4632
This commit is contained in:
Ralf Haferkamp
2024-04-16 16:19:51 +02:00
committed by Ralf Haferkamp
parent a1e61f373a
commit 7ff0771e4d
9 changed files with 28 additions and 24 deletions
+7
View File
@@ -201,6 +201,13 @@ func IsStatusCodeError(err error, code rpc.Code) bool {
return sce.code == code
}
// IsSpaceRoot checks if the given resource info is referring to a space root
func IsSpaceRoot(ri *storageprovider.ResourceInfo) bool {
f := ri.GetId()
s := ri.GetSpace().GetRoot()
return f.GetOpaqueId() == s.GetOpaqueId() && f.GetSpaceId() == s.GetSpaceId()
}
func checkStatusCode(reason string, code rpc.Code) error {
if code == rpc.Code_CODE_OK {
return nil