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

Remove restricted user type/attribute #354

Merged
merged 2 commits into from
Sep 20, 2022
Merged

Conversation

reefdog
Copy link
Contributor

@reefdog reefdog commented Sep 20, 2022

This PR removes the concept of "restricted" users. Under the current permissions model, we don't have this concept anymore, so this removes the attribute and the interface-splitting that fed a stripped-down experience to this user type.

Testing:

  • rails t of course
  • rails s and log in with [email protected] and poke around major functionality, particularly searching and archiving. Nothing should have changed from before.
  • Do the same with [email protected] if you feel so inclined.

Closes #353

@reefdog reefdog self-assigned this Sep 20, 2022
@reefdog reefdog changed the base branch from master to 299-add-user-roles September 20, 2022 14:52
@reefdog reefdog linked an issue Sep 20, 2022 that may be closed by this pull request
Copy link
Collaborator

@oneroyalace oneroyalace left a comment

Choose a reason for hiding this comment

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

LGTM

@reefdog reefdog force-pushed the 353-remove-restricted-user branch from e9584f7 to f43c4b5 Compare September 20, 2022 15:13
Before removing the attribute entirely, let’s first stop treating the
interface any differently based on restricted status.

The commit removes any special/limited version of the interface for
restricted users.

There are also a few places we were doing a `current_user.nil?` check
that was no longer necessary since `before_action :authenticate_user!`
was already handling that.

Issue #353
This commit removes the `restricted` attribute from the `User` model and
removes the (unused) seed for this user type.

Issue #353
@reefdog reefdog force-pushed the 353-remove-restricted-user branch from f43c4b5 to 25efdff Compare September 20, 2022 15:49
Base automatically changed from 299-add-user-roles to master September 20, 2022 15:51
@reefdog reefdog merged commit 797c4ea into master Sep 20, 2022
@reefdog reefdog deleted the 353-remove-restricted-user branch September 20, 2022 15:52
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.

Remove user.restricted attribute
3 participants