public boolean hasPermission ( Authentication authentication , Object resource , Object privilege ) { boolean logPermission = isLogPermission ( resource ) ; return checkRole ( authentication , privilege , logPermission ) || checkPermission ( authentication , resource , privilege , true , logPermission ) ; }
Check permission for role privilege key and resource condition .