-
Notifications
You must be signed in to change notification settings - Fork 120
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
Staff Dashboard: refactor deactivations and add ability to deactivate fosterers and adopters #1106
Comments
@wandergithub this one? It has some UI but it's nothing new. Just copy what's done already. Has a good bit of back end refactoring. |
I want it! seems interesting. |
One question: If im using |
Have you tried setting the policy using |
great that's what i was looking for |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Staff (superadmin) can currently deactivate other staff. We also want to enable deactivation of fosterers and adopters.
We currently have a custom action on the Organizations::Staff::Staff controller but I think we can move activations to its own resource to handle for all users. We will also need a new policy, and in the update action/policy check, we just need to determine if the record being mutated is a staff or adopter/fosterer and check for the appropriate user permission. See the video for my thoughts!
https://www.loom.com/share/449c8f3c439b4e01998d472812960d70?sid=98ac012d-ec6c-411a-b857-db8e4c07ba5a
The text was updated successfully, but these errors were encountered: