Added missing permission checks.