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

Fix deleting searched managers/moderators/admins #4038

Merged
merged 2 commits into from
Jun 16, 2020
Merged

Conversation

javierm
Copy link
Member

@javierm javierm commented Jun 15, 2020

Background

While displaying search results, we were offering the option to delete managers, moderators and administrators based on their user ID, instead of their manager/moderator/administrator ID.

Objectives

  • Delete the proper manager/moderator/administrator when clicking the "delete" button after searching for a certain manager/moderator/administrator
  • Remove unnecessary code checking whether a manager/moderator/administrator is indeed a manager/moderator/administrator

@javierm javierm added the Bug label Jun 15, 2020
@javierm javierm self-assigned this Jun 15, 2020
@javierm javierm changed the base branch from master to resolve June 15, 2020 13:12
@javierm javierm changed the base branch from resolve to master June 15, 2020 13:13
@javierm javierm added this to Reviewing in Consul Democracy Jun 15, 2020
@taitus taitus self-assigned this Jun 16, 2020
We were deleting managers, moderators and administrators based on their
user ID, instead of their manager/moderator/administrator ID.
Consul Democracy automation moved this from Reviewing to Testing Jun 16, 2020
Originally, the code was shared between the index action and the search
action, but since commit fb6dbdf that's no longer the case. So in the
index action we don't need to check whether a user is a
moderator/manager/admin/official or not; they all are.
@javierm javierm merged commit 539db43 into master Jun 16, 2020
Consul Democracy automation moved this from Testing to Release 1.2.0 Jun 16, 2020
@javierm javierm deleted the fix_admin_search branch June 16, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants