Update PermCheck.cpp