In the current code authorization is handled in the controller layer. It is always better to extract it into separate layer.
Use https://github.com/varvet/pundit (Preferred), Or https://github.com/CanCanCommunity/cancancan
Can I start looking into this?
Sure, go ahead
Is anyone one working on this issue? I want to implement this
Hey @Sadat97, I've opened a PR for it.
@ankitkataria if this has been done, please refer the PR here. Then, this issue can be closed after the merge.
@Parikshit-Hooda PR #184 is yet to be merged. I've referenced the issue in the PR already. I'll ensure that the issue gets closed once it is merged! :sweat_smile:
Most helpful comment
Hey @Sadat97, I've opened a PR for it.