added 2 new flag types: notify user and notify moderators

fixed up messed up user navigation
refactored
This commit is contained in:
Sam
2013-04-12 17:55:45 +10:00
parent 0f362c5474
commit e969eb14e8
20 changed files with 201 additions and 74 deletions

View File

@@ -294,6 +294,7 @@ class Guardian
# You can only undo your own actions
return false unless @user
return false unless post_action.user_id == @user.id
return false if post_action.is_private_message?
# Make sure they want to delete it within the window
return post_action.created_at > SiteSetting.post_undo_action_window_mins.minutes.ago