I personally always use the checkPermission from the AccessControl, but I believe that under the hood, both zope.security and AccessControl will call the same code. I searched this code before, and I think it is actually in the C part of the role / permission logic.
source
share