Fix checking with a Permission object