culturecreates / footlight-app

Footlight CMS Front-end
https://cms.footlight.io
2 stars 0 forks source link

Unable to invite a new user #1124

Closed sahalali closed 4 weeks ago

sahalali commented 1 month ago

As an admin of the CMS, I am not able to invite a user in the 'Tout culture' calendar.

Image

AbhishekPAnil commented 1 month ago

Test Cases:

  1. Try to invite a new user as a super admin.
  2. Check if the organization and people in user settings are shown after the user accepts invitation. 3.Try to invite an existing user in the cms to calendar.Check if the existing cases work as before.
AbhishekPAnil commented 1 month ago

Bug report: The error happened only for a super admin as s super admin does not have roles in their user login/current user response.Hence this issue had to be handled separately. Fix: While a super admin tries to invite a new user ,all the calendars in the cms are shown in the calendars section. Refernce :

Image

troughc commented 1 month ago

Tested as Admin and as super admin: PASSED

(tested adding new users and adding existing users to another calendar) - looks good. I noticed that the staging and pr calendar users seem to be linked but I don't think it matters.

Only thing to make sure @AbhishekPAnil is that the invitation sends the use to the correct environment (right now, the invitation sent from the PR is sending me to staging).

troughc commented 1 month ago

When the link in the email invitation is correct @AbhishekPAnil please add the to be deployed tag and push this live.

AbhishekPAnil commented 4 weeks ago

Tested as Admin and as super admin: PASSED

(tested adding new users and adding existing users to another calendar) - looks good. I noticed that the staging and pr calendar users seem to be linked but I don't think it matters.

Only thing to make sure @AbhishekPAnil is that the invitation sends the use to the correct environment (right now, the invitation sent from the PR is sending me to staging).

This happened because the this PR link is connected to staging backend.