Skip to content

Add the ability to ban users#5875

Closed
jmhooper wants to merge 4 commits intomainfrom
jmhooper-ban-users
Closed

Add the ability to ban users#5875
jmhooper wants to merge 4 commits intomainfrom
jmhooper-ban-users

Conversation

@jmhooper
Copy link
Contributor

This commit adds the ability to ban users using a db table:

  • A service provider column can be used for a SP specific ban
  • If no SP is specified, the user is banned for all SP

Using a database table was chosen over a config value to allow users to be quickly banned without need to recycle to re-apply configs.

This commit adds the ability to ban users using a db table:
- A service provider column can be used for a SP specific ban
- If no SP is specified, the user is banned for all SP

Using a database table was chosen over a config value to allow users to be quickly banned without need to recycle to re-apply configs.
Copy link
Contributor

@mitchellhenke mitchellhenke left a comment

Choose a reason for hiding this comment

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

Couple non-blocking questions, looks good 👍🏼

jmhooper added a commit that referenced this pull request Jan 29, 2022
* Add the ability to ban users

This commit adds the ability to ban users using a db table:
- A service provider column can be used for a SP specific ban
- If no SP is specified, the user is banned for all SP

Using a database table was chosen over a config value to allow users to be quickly banned without need to recycle to re-apply configs.
@jmhooper jmhooper closed this Jan 29, 2022
create_table :sign_in_restrictions do |t|
t.integer :user_id, null: false
t.string :service_provider

Copy link
Contributor

@zachmargolis zachmargolis Jan 29, 2022

Choose a reason for hiding this comment

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

maybe for the future we can add a followup for with a reason (internal only, just for record keeping)

Suggested change
t.string :reason

aduth pushed a commit that referenced this pull request Jan 31, 2022
* Add the ability to ban users

This commit adds the ability to ban users using a db table:
- A service provider column can be used for a SP specific ban
- If no SP is specified, the user is banned for all SP

Using a database table was chosen over a config value to allow users to be quickly banned without need to recycle to re-apply configs.
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.

3 participants