Actually check the permission.