cal.diy icon indicating copy to clipboard operation
cal.diy copied to clipboard

Public pages button are enabled for pending users

Open ericrommel opened this issue 3 years ago • 2 comments

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

  1. Create an organization and set up a team
  2. Invite users for that team
  3. Confirm that they are in pending status
  4. Click on the View public page button for any pending user

Actual Results

  • View public page buttons are enabled for pending users
  • A 404 page is shown after clicking on the buttons as there is no null user

Expected Results

  • View public page buttons 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

image

image

ericrommel avatar Jun 21 '23 22:06 ericrommel

Can I work on it?

ptdatta avatar Jun 22 '23 07:06 ptdatta

image Also the button in the dropdown doesn't have the link to the page!

I am working on it!

AnitKrJha avatar Jun 22 '23 17:06 AnitKrJha