Create user_can_for_blog function
|Reported by:||mweichert||Owned by:|
|Component:||Role/Capability||Keywords:||has-patch needs-testing needs-refresh|
To compliment #14602, a user_can_for_blog function is needed.
Currently we have no function to pass a user ID, blog, and a capability/role which will return whether the user can perform that role or has that capability for a particular blog.
See attached patch please.