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

A couple of ideas for better handling of deleted journalists #5378

Closed
rmol opened this issue Jul 15, 2020 · 0 comments · Fixed by #5380
Closed

A couple of ideas for better handling of deleted journalists #5378

rmol opened this issue Jul 15, 2020 · 0 comments · Fixed by #5380
Assignees

Comments

@rmol
Copy link
Contributor

rmol commented Jul 15, 2020

Description

After #5284, you can no longer create a journalist account with a username of "deleted" in the journalist interface admin section, but in review we missed the fact that you can change an existing account's username to that.

It's also still possible to use manage.py to create an account with a username of "deleted".

@rmol rmol added this to the 1.5.0 milestone Jul 15, 2020
@kushaldas kushaldas self-assigned this Jul 16, 2020
kushaldas added a commit that referenced this issue Jul 16, 2020
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.
kushaldas added a commit that referenced this issue Jul 16, 2020
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.
rmol added a commit that referenced this issue Jul 16, 2020
…name

Fixes #5378, adds more checks for invalid username
@rmol rmol removed this from the 1.5.0 milestone Jul 16, 2020
rmol pushed a commit that referenced this issue Jul 16, 2020
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)
sssoleileraaa pushed a commit that referenced this issue Aug 31, 2020
…name

Fixes #5378, adds more checks for invalid username
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 a pull request may close this issue.

2 participants