public static function require_can_create_data_request_for_user($user, $requester = null) {
        $usercontext = \context_user::instance($user);

        require_capability('tool/dataprivacy:makedatarequestsforchildren', $usercontext, $requester);

        return true;
    }
public static function require_can_create_data_request_for_user($user, $requester = null) {
        $usercontext = \context_user::instance($user);

        require_capability('tool/dataprivacy:makedatarequestsforchildren', $usercontext, $requester);

        return true;
    }
public static function require_can_create_data_request_for_user ( $ user , $ requester = null ) { $ usercontext = \ context_user :: instance ( $ user ) ; require_capability ( 'tool/dataprivacy:makedatarequestsforchildren' , $ usercontext , $ requester ) ; return true ; }
Require that the current user can make a data request for the specified other user.

@param   int     $user The user ID of the target user.
@param   int     $requester The user ID of the user making the request.
@return  bool
Require that the current user can make a data request for the specified other user .