Created
November 24, 2010 10:55
-
-
Save timruffles/713482 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def user_allowed_to_deposit? | |
validate_rights :deposit do |reason, default| | |
if reason == :acl_failed | |
flash[:notice] = "We need to verify your identity before you can deposit." | |
redirect_to(new_account_idcheck_path) | |
else | |
default.call | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment