Commit 6b2deedb authored by Serge Ahranovich's avatar Serge Ahranovich

Merge pull request #14 from ncsuarc/account_pending

Add argument to account_pending
parents 0af14640 c46e286b
......@@ -71,7 +71,13 @@ class RedmineOauthController < AccountController
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
......
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