Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #32

Open
BobWall23 opened this issue Mar 27, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@BobWall23
Copy link
Member

BobWall23 commented Mar 27, 2020

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.

@BobWall23 BobWall23 added the bug Something isn't working label Mar 27, 2020
@ernieturner ernieturner changed the title Better errors when a user can't access a file 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 Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant