New Feature: Authorization - Admin and Teacher Accounts
Why This Feature?
I talked with my existing user. And I talked with multiple prospects 10+, all of them have teachers and want their teachers to have access to the platform.
One of the prospects has around 150 teachers.
Now they need to restrict the teachers to teacher features.
Similarly they have admin staff that needs admin features.
So what do we do? We add Authorization. So every user is able to access/edit only the information that they need.
Timeline
Building this should not take more than 2 hours.
1. Add auth tags on the user model. 2 mins.
2. Add an authorization middleware on all APIs. 2 mins.
3. Restrict UI tabs based on the user's auth level. 5 mins.
4. Add personnel mgmt. view, where admin can register new admin and teacher users. 1hr.
And some buffer... plus some AI
Conclusion
Let's build it!
I will add more detailed blog on Authorization on darshandhabale.com tomorrow