Skip to content

Commit 0f525e9

Browse files
committed
use actual resource id from stat for tagging
Signed-off-by: Jörn Friedrich Dreyer <[email protected]>
1 parent fec6005 commit 0f525e9

File tree

1 file changed

+6
-0
lines changed
  • services/graph/pkg/service/v0

1 file changed

+6
-0
lines changed

services/graph/pkg/service/v0/tags.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ func (g Graph) AssignTags(w http.ResponseWriter, r *http.Request) {
8686
return
8787
}
8888

89+
// use resource id from stat response to work on the actual resource and not a share jail item
90+
rid = *sres.GetInfo().GetId()
91+
8992
pm := sres.GetInfo().GetPermissionSet()
9093
if pm == nil {
9194
g.logger.Error().Err(err).Msg("no permissionset on file")
@@ -185,6 +188,9 @@ func (g Graph) UnassignTags(w http.ResponseWriter, r *http.Request) {
185188
return
186189
}
187190

191+
// use resource id from stat response to work on the actual resource and not a share jail item
192+
rid = *sres.GetInfo().GetId()
193+
188194
pm := sres.GetInfo().GetPermissionSet()
189195
if pm == nil {
190196
g.logger.Error().Err(err).Msg("no permissionset on file")

0 commit comments

Comments
 (0)