Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What should be data model for this?

 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there

I am working on a web application In which there is a section of forums.

I have 4 category os users which will access forums
admin,faculty,student,library

My Question is I want to give admin permission to add and delete a post while other can only read that.

How can I do this?

One approach I am thinking is based on UserLevel for permissions.


How should I model my registration data?

Thanks
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kishor,

I want to give admin permission to add and delete a post while other can only read that.


Why do you need to model for this in the database ?

One approach I am thinking is based on UserLevel for permissions.

Yes the calling application checks the permission before it issues an update / delete query.

Thanks
Srikkanth
 
Kishor Joshi
Ranch Hand
Posts: 674
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

@
Srikanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic