Created
May 1, 2015 14:09
-
-
Save keithmancuso/3bc4df963116c7b513db to your computer and use it in GitHub Desktop.
Not Nominee Check
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
public PageReference checkIfNotNominee() { | |
User theUser = GlobalVariables.getCurrentUser(); | |
Coontact theContact = GlobalVariables.getCurrentContact(theUser); | |
if (theContact.RecordTypeId != RecordTypeConstant.nomineeContactRecordTypeId) { | |
PageReference page = System.Page.PosseCommunity; | |
page.setRedirect(true); | |
return page; | |
} else { | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment