Skip to content

Commit

Permalink
Merge pull request #14 from ncsuarc/account_pending
Browse files Browse the repository at this point in the history
Add argument to account_pending
  • Loading branch information
serge-xxx committed Aug 7, 2014
2 parents 0af1464 + c46e286 commit 6b2deed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/controllers/redmine_oauth_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ def try_to_login info
if user.active?
successful_authentication(user)
else
account_pending
# Redmine 2.4 adds an argument to account_pending
if Redmine::VERSION::MAJOR > 2 or
(Redmine::VERSION::MAJOR == 2 and Redmine::VERSION::MINOR >= 4)
account_pending(user)
else
account_pending
end
end
end
end
Expand Down

0 comments on commit 6b2deed

Please sign in to comment.