Change whether the current user has access to view the xprofile component before redirecting to profile/?rcpbp=restricted
. If false
, the redirect will not take place.
Parameters:
$profile_access - boolean, whether current user has xprofile access.