You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since we use references to the User in a lot of documents. Allowing for destructive deletes of the user will lead to a lot of broken references.
One possible solution is instead of destructively deleting a User, the delete action could delete the User.google object, unset the User.assignment and set the User.role to deleted. This would effectively remove all access to the app for that User, while maintaining that User document referenced by other documents. This also allows a new User to be created by that google account for future access. It will be a new User with a different User._id.
The text was updated successfully, but these errors were encountered:
Since we use references to the User in a lot of documents. Allowing for destructive deletes of the user will lead to a lot of broken references.
One possible solution is instead of destructively deleting a User, the delete action could delete the
User.google
object, unset theUser.assignment
and set theUser.role
todeleted
. This would effectively remove all access to the app for that User, while maintaining that User document referenced by other documents. This also allows a new User to be created by that google account for future access. It will be a new User with a differentUser._id
.The text was updated successfully, but these errors were encountered: