* Separated the global setup settings from those in the root site's preferences
* Added encoding="form" parameter to most of the macros using the request handler * Renamed commentsMode to commentMode (comments_mode to comment_mode in DB) * Reactivated notifications in a simplified manner * Throw an error in global sendMail() method if arguments are not sufficient * Added HopObject.notify() method * Added HopObject.kind_macro() method (provides the constructor's name in lowercase) * Added Messages.skin containing subskins suited for e-mail output * Removed obsolete skin files * Added reset_action() method for resetting a user's password to Members prototype * Added require() method to Membership prototype; wrapped static require() method around it * Added Membership.notify() method which does all the member-related notification stuff * Send notification on membership removal * Fixed contact form in Membership prototype * Dropped e-mail property from Site prototype (users can be contacted via Membership.contact_action(), Root prototype has extra e-mail property) * Added missing getPermission() method to User prototype, always requiring a privileged user
This commit is contained in:
parent
504260650e
commit
3e8c4c6313
34 changed files with 336 additions and 276 deletions
|
@ -50,7 +50,7 @@ Comment.prototype.getPermission = function(action) {
|
|||
case ".":
|
||||
case "main":
|
||||
case "comment":
|
||||
return this.site.commentsMode === Site.ENABLED &&
|
||||
return this.site.commentMode === Site.ENABLED &&
|
||||
this.story.getPermission(action) &&
|
||||
this.status !== Comment.CLOSED &&
|
||||
this.status !== Comment.PENDING;
|
||||
|
@ -97,8 +97,8 @@ Comment.prototype.update = function(data) {
|
|||
this.title = data.title;
|
||||
this.text = data.text;
|
||||
this.setContent(data);
|
||||
if (this.site.commentsMode === Site.MODERATED ||
|
||||
this.story.commentsMode === Site.MODERATED) {
|
||||
if (this.site.commentMode === Site.MODERATED ||
|
||||
this.story.commentMode === Site.MODERATED) {
|
||||
this.mode = Comment.PENDING;
|
||||
} else if (this.story.status === Story.PRIVATE &&
|
||||
this.getDelta(data) > 50) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue