开发者

how can I provide Role based access to Blog app?

I am confused in how can I develop user roles to the Blog application?

  1. I have tried to give roles in user model itself [Admin, user, author]
  2. But now I am getting confuse, how can user have aceess of all blogs to READ.
  3. 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.
  4. And "admin" have only accees to delete blogs. So can I give DELETE access to my "user" or "author"?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜