fix or clear up the "Sign out of all" pickups button on the profile page
Summary
The "Sign out of all" pickups button on the profile page is currently broken. In !2180 (merged) | !2181 (merged) the button was hidden, until it is decided how this button / its functionality should be adjusted.
The button (and it's code) is not deleted, the button is simply no longer displayed.
Steps to reproduce
(this was written before the product group finished their discussion) All steps take place in store x.
- Make the button visible again for testing purposes (see !2181 (merged)). Log in as bieb / bot / orga. The button should appear.
- Sign in as user a. Assign yourself to multiple slots with user a. The button should not appear.
- log in as user b. The button for user a should not appear.
- log in as bieb / bot / orga. Press the button. Clicking on the button would sign user a out of all slots they are assigned to. Then a confirmation should be shown 'signed out of all slots'. Check if user a is still in one of the slots.
What is the current bug behavior?
https://gitlab.com/foodsharing-dev/foodsharing/uploads/26c441823bb49dfdf7e417a93a78d500/image.png
The button does not work in own profile or as BOT (even if BOT could otherwise also sign out all slots individually, so the user technically would be authorized).
What is the expected correct behavior?
Clicking on the button would sign the user out of all slots they are assigned to. Then a confirmation should be shown 'signed out of all slots'.
Discussion threads
https://yunity.slack.com/archives/C74JC2V26/p1649016488177799 on slack, on fs - product group: https://beta.foodsharing.de/?page=bezirk&bid=2296&sub=forum&tid=162599
Possible fixes
to be determined