awesomefoundation / awesomebits

This is the source code for the Awesome Foundation website
https://www.awesomefoundation.org/
GNU Affero General Public License v3.0
62 stars 53 forks source link

Switch from :must_be_logged_in to :require_login #512

Closed jcn closed 1 year ago

jcn commented 1 year ago

:require_login is a Clearance built-in function which will redirect to the sign-in page and then back to the page we were originally trying to reach.

Not switching VotesController and CommentsController for now since these both operate completely via AJAX and should probably have a different interface (or at least a specific response type handler).

Closes https://github.com/awesomefoundation/awesomebits/issues/507