Fixed permissions bug in getting rulesets