Use .some to loop over caps instead of .forEach
Use .some to loop over caps instead of .forEach

The return inside forEach returns from the anonymous function, but we
really want to return from currentUserCan.

Automattic/vip-js-sdk