Function hasAccessCapability