Created
May 27, 2015 21:30
-
-
Save bq1990/f64a71063ba5fe11b92b to your computer and use it in GitHub Desktop.
Check for attribute in a list of objects
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
any(group.name == "admin" for group in user.groups) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment