Add missing checks for permissions.