2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

Add specs for post action guardian

This commit is contained in:
James Kiesel 2015-12-30 20:52:36 +01:00
parent a559754db3
commit 6ceb108946
4 changed files with 32 additions and 2 deletions

View file

@ -247,7 +247,7 @@ module Email
def create_post_action(email_log, type)
PostActionCreator.new(email_log.user, email_log.post).perform(type)
rescue PostAction::AlreadyActed => e
rescue Discourse::InvalidAccess, PostAction::AlreadyActed => e
raise InvalidPostAction.new(e)
end