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