IronCoreLabs / IronCoreLabs/ironhide

Fix error when trying to display info about a file that is also shared with a group the user is not a member/admin of

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
53
Forks
5
Avg merge
41m
Merged PRs (30d)
2

Description

If a user has access to a file that is encrypted to a group that they are not a part of via

`ironhide file:info file.iron`

Then they get an error that says:

`Error: Cannot read property 'groupName' of undefined`

This is because we had previously assumed that the user is always in the groups that comes back in the document visibility list. This changed at some point in the past so now it also returns the IDs of the groups that the user is not a member/admin of.

Best idea to fix this is to just omit the groups in the table that the user is not part of.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.