Merge pull request #10172 from owncloud/fix-sharejail-stat-id

[full-ci] bump reva to 02af5a266
This commit is contained in:
Jörn Friedrich Dreyer
2024-09-30 14:49:06 +02:00
committed by GitHub
8 changed files with 49 additions and 16 deletions
+6
View File
@@ -86,6 +86,9 @@ func (g Graph) AssignTags(w http.ResponseWriter, r *http.Request) {
return
}
// use resource id from stat response to work on the actual resource and not a share jail item
rid = *sres.GetInfo().GetId()
pm := sres.GetInfo().GetPermissionSet()
if pm == nil {
g.logger.Error().Err(err).Msg("no permissionset on file")
@@ -185,6 +188,9 @@ func (g Graph) UnassignTags(w http.ResponseWriter, r *http.Request) {
return
}
// use resource id from stat response to work on the actual resource and not a share jail item
rid = *sres.GetInfo().GetId()
pm := sres.GetInfo().GetPermissionSet()
if pm == nil {
g.logger.Error().Err(err).Msg("no permissionset on file")