Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible not allow users to edit their posts?

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is there possibility to set that user can't edit even their own posts after it was posted? Event better would be if they can't edit post after somebody has already replied to it.
[originally posted on jforum.net by palko]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A quick and dirty way to do this would be to modify the templates to disable editing. You might be able to use Freemarker's script to check for replys as well.

A more full-proof way would be to modify the PostAction.edit() method to do what you want.
[originally posted on jforum.net by monroe]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic