The assertPostCreateResourcePermission() method compares the requested permission without regard to its withGrant property, and could thus incorrectly assert the requested permission as a post create permission in the case that the post create permission is without grant and the requested is with grant.
The
assertPostCreateResourcePermission()
method compares the requested permission without regard to itswithGrant
property, and could thus incorrectly assert the requested permission as a post create permission in the case that the post create permission is without grant and the requested is with grant.