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