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
Bug Description
Newly created admin users encounter a 500 error during login if they do not have any projects assigned. The issue appears to be linked to the HasProjectMiddleware, which fails to handle cases where no projects are associated with the user.
Expected Behavior
Admin users should be able to log in even if they have no projects assigned.
Additional Context
Assigning the 'default' project to the newly created admin user as the first user resolves the issue. Adjusting the HasProjectMiddleware to assign or handle 'default' projects automatically might fix the problem.
The text was updated successfully, but these errors were encountered:
awojtczyk
changed the title
500 Error on Login for Newly Created Admin User Without Assigned Projects
500 Error on Login for newly created admin user without assigned projects
Dec 27, 2024
Bug Description
Newly created admin users encounter a 500 error during login if they do not have any projects assigned. The issue appears to be linked to the HasProjectMiddleware, which fails to handle cases where no projects are associated with the user.
Expected Behavior
Admin users should be able to log in even if they have no projects assigned.
Additional Context
Assigning the 'default' project to the newly created admin user as the first user resolves the issue. Adjusting the HasProjectMiddleware to assign or handle 'default' projects automatically might fix the problem.
The text was updated successfully, but these errors were encountered: