how can I provide Role based access to Blog app?
I am confused in how can I develop user roles to the Blog application?
- I have tried to give roles in user model itself [Admin, user, author]
- But now I am getting confuse, how can user have aceess of all blogs to READ.
- If my user wants to create a blog, then his role is changing at that point of time form "user" to &qu开发者_如何转开发ot;author" of a prticular blog.
- And "admin" have only accees to delete blogs. So can I give DELETE access to my "user" or "author"?
精彩评论