Skip to content

Bug: Account destroyed when sharing access to someone else account #966

@cesare190

Description

@cesare190

Before you start (required)

General checklist

  • [ x] I have removed personal / sensitive data from screenshots and logs
  • I have searched existing issues and discussions to ensure this is not a duplicate issue

How are you using Sure?

  • I was a paying Maybe customer (hosted version)
  • I use it on PikaPod, Umbrel or similar (VPS included)
  • [ x] I am a self-hosted user (local only)

Self hoster checklist

Paying, hosted users should delete this entire section.

If you are a self-hosted user, please complete all of the information below. Issues with incomplete information will be marked as Needs Info to help our small team prioritize bug fixes.

  • Self hosted app commit SHA (find in user menu): [enter commit sha here]
    • [ x] I have confirmed that my app's commit is the latest version of Sure
  • Where are you hosting?
    • Render
    • [ x] Docker Compose
    • Umbrel
    • PikaPod
    • Other (please specify)

Bug description

There's no selector to change accounts when you have your own account and are invited to manage another. If you remove the sharing, the original account will be lost.

To Reproduce

I have two users on my Sure instance, x and y. The first is my personal user, the other is a second test user. In y's settings, I invited x to log in as a member. Without any confirmation, when I logged in to x, I saw y's settings and account. Once I removed x from y and logged back in to x, I was told that x's account did not exist and asked to create a new profile.

  1. Create a user x
  2. Create a user y
  3. On y, go to Settings => Profile Info => Add Member => x as a Member
  4. Log out of y
  5. Log in to x and see that the account is y's
  6. Log out of x
  7. Log back in to y and remove account x from Profile Info
  8. Log out of y and log back in with x
  9. Display the welcome screen for creating a new account

Expected behavior

I expected to be able to invite someone to edit my account as a member or admin, and for that person to choose whether to view their own account or the shared one. I also expected that if the sharing was removed, access to the removed user's original profile would still be restored.

Screenshots and/or recordings

There are no screenshots that I feel are worth sharing, but I am available to provide them if needed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions