Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry pick #5380 to release/1.5.0 #5382

Merged
merged 1 commit into from
Jul 16, 2020
Merged

Cherry pick #5380 to release/1.5.0 #5382

merged 1 commit into from
Jul 16, 2020

Conversation

rmol
Copy link
Contributor

@rmol rmol commented Jul 16, 2020

Status

Ready for review

Description of Changes

Cherry-picks #5380 (which closes loopholes by which a journalist username could still be set to "deleted") to release/1.5.0.

Testing

Follow the test plan in #5380.

Deployment

See #5380.

Checklist

See #5380.

In #5284 we made sure that the username `deleted` is not not allowed
to be added in the system via the admin section of the journalist web
application. But, one could still edit any existing user and change
the name to `deleted`. Or, an admin can add a new user via `manage.py`
in command line.

In PR adds checks to make sure that addiving a new user via `manage.py`
will fail if you try to set the username as `deleted`, it also blocks
editing any existing username to `deleted`.

The PR also includes unit and functional tests.

(cherry picked from commit 90e19ea)
Copy link
Contributor

@kushaldas kushaldas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good. Approved.

@kushaldas kushaldas merged commit fc6b16e into release/1.5.0 Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants