Created
January 5, 2012 20:11
-
-
Save jonesdeini/1567001 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 121 def programs_to_be_affiliated | |
| 122 if current_user.has_membership?(Ccce) || current_user.has_identity?(Admin) | |
| 123 return Program.all | |
| 124 elsif current_user.has_identity?(AcademicStaff) | |
| 125 return Program.find(current_user.authorized_programs) | |
| 126 else | |
| 127 return [] | |
| 128 end | |
| 129 end | |
| 121 def programs_to_be_affiliated | |
| 122 if current_user.has_membership?(Ccce) || current_user.has_identity?(Admin) | |
| 123 return Program.all | |
| 124 elsif current_user.has_identity?(AcademicStaff) | |
| 125 return Program.find(current_user.authorized_programs) | |
| 126 end | |
| 127 [] | |
| 128 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment