Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

no restrictions

$meta_query = array(
	'relation' => 'OR',
	array(
		'key'     => 'restricted_access',
		'compare' => '=',
		'type'    => 'CHAR',
	),
	array(
		'key'     => 'restricted_access',
		'compare' => 'NOT EXISTS',
	),
);