handle cancan auth exceptions

[#76271294]
added a scope for active books on Book model
[#75986988]