Fixed permissions hook, actually implemented reset.