Fixed Typo in permission checks