ita-social-projects / Forum

Forum Repository for the development of Python project
MIT License
7 stars 3 forks source link

[Authorization] Restrict blocked users' login (after rejected moderation) #642

Open MissMS opened 4 weeks ago

MissMS commented 4 weeks ago

Goal: limit access of the blocked users to their profile after rejected added content moderation

Acceptance criteria:

  1. Given moderation request is rejected AND profile status is 'Rejected' AND user profile is blocked When user log in Then show validation error: Профіль заблоковано через порушення правил користування сайтом AND user cannot log in

  2. Registration must not be affected - user with existing email in the system cannot register again

EPIC: #3 Affected US: #2 Related US: #620