Fixes handling cascading permissions.