aspose file tools*
The moose likes JForum and the fly likes Is it possible not allow users to edit their posts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Is it possible not allow users to edit their posts?" Watch "Is it possible not allow users to edit their posts?" New topic
Author

Is it possible not allow users to edit their posts?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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]
 
Consider Paul's rocket mass heater.
 
subject: Is it possible not allow users to edit their posts?