public boolean hasPermission ( Authentication authentication , Object privilege ) { return checkRole ( authentication , privilege , true ) || checkPermission ( authentication , null , privilege , false , true ) ; }
Check permission for role and privilege key only .