-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Update private routes and Set to use roles vs role #4681
Update private routes and Set to use roles vs role #4681
Conversation
So this does not deprecate @thedavidprice should weigh in on this, since it'll effect basically every Redwood app that exists! |
@thedavidprice should weigh in on this, since it'll effect basically every Redwood app that exists! Agreed. BUT! remember that |
I'm ok with a hard change. We just need to do it now. If hard change, this would be a really really nice to have:
Code mode would be great. Just not sure if it's feasible given all the things. Either way, I need Release Notes copy. And docs will need updating, true? |
@thedavidprice or @cannikin can I get a review? Thanks! |
@cannikin please do help with the review. Frankly I don't know which role is which plural... 🤷♂️ |
I’ll work on the codemod for this! |
1. `role` => `roles`. `role` was replaced by `roles` in #4681 2. updated user role example.
Fix #4488
Purpose
I could not figure out how to deprecate and still keep the logic in the router to take a role or roles.
But I do't think we should allow
role
since that is used by route announcements and it would be more confusing to userole
differently in two different contexts:Here is is a route alert.