BigW Consortium Gitlab

Commit 68b5ded0 by Lin Jen-Shin

No need to check project because:

sent_notification.project would never be nil, and we also have already checked message_project before entering process_create_issue.
parent 034e752a
......@@ -79,8 +79,7 @@ module Gitlab
raise UserNotFoundError unless author
raise UserBlockedError if author.blocked?
# TODO: Give project not found error if author cannot read project
raise UserNotAuthorizedError if project.nil? ||
!author.can?(permission, project)
raise UserNotAuthorizedError unless author.can?(permission, project)
end
# Find the first matched user in database from email From: section
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment