Skip to content

Instantly share code, notes, and snippets.

@jonesdeini
Created January 5, 2012 20:11
Show Gist options
  • Save jonesdeini/1567001 to your computer and use it in GitHub Desktop.
Save jonesdeini/1567001 to your computer and use it in GitHub Desktop.
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