cal.diy
cal.diy copied to clipboard
Public pages button are enabled for pending users
Issue Summary
After inviting users for a team, they are in pending status and their username is still null. The Public page buttons for those pending users are also enabled. After clicking on that button, it returns a 404 page as there are no users called null
Steps to Reproduce
- Create an organization and set up a team
- Invite users for that team
- Confirm that they are in pending status
- Click on the
View public pagebutton for any pending user
Actual Results
View public pagebuttons are enabled for pending users- A 404 page is shown after clicking on the buttons as there is no
nulluser
Expected Results
View public pagebuttons should be disabled for pending users
Note: Do you think that we should have "reserved" usernames? Or kind of a list with not allowed usernames like that
Technical details
- Tested on Chrome (114.0.5735.134) and Firefox (114.0.2)
Evidence
Can I work on it?
Also the button in the dropdown doesn't have the link to the page!
I am working on it!