$rights = str_replace($right_to_add, '', $rights);
$rights = str_replace(',,',',', $rights);
// Add the right only if we have it ourselves.
$rights = str_replace($right_to_add, '', $rights);
$rights = str_replace(',,',',', $rights);
// Add the right only if we have it ourselves.