Created
October 5, 2011 13:09
-
-
Save dangerousbeans/1264383 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
-- What roles have access to which attributes on the given entity | |
SELECT r.name, a.name | |
FROM meta_attribute_roles ar | |
JOIN roles r on ar.role_id = r.id | |
JOIN meta_attributes a ON ar.meta_attribute_id = a.id | |
JOIN meta_entities e ON a.meta_entity_id = e.id | |
WHERE e.name like '%festival%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment