Skip to content

Commit 9a29e58

Browse files
committed
use the RBACObject method
1 parent c9cf780 commit 9a29e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/files/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewFromStore(store database.Store, registerer prometheus.Registerer, authz
3333

3434
content := bytes.NewBuffer(file.Data)
3535
return cacheEntryValue{
36-
object: rbac.ResourceFile.WithID(file.ID).WithOwner(file.CreatedBy.String()),
36+
object: file.RBACObject(),
3737
FS: archivefs.FromTarReader(content),
3838
size: int64(content.Len()),
3939
}, nil

0 commit comments

Comments
 (0)