If current user is Owner (Repeater)

Hi,
Try this code

export function vectorImage145_click(event, $w) {


$w("#box141").show(); // Primary container
	
if(wixUsers.currentUser.loggedIn) {
  if (wixUser.currentUser.Owner) { 
    $w("#box144").collapse(); // is logged in option (not owner) 
    $w("#box145").collapse(); // is not logged in option 
    $w("#box143").expand(); // is logged in option (owner) 
  }
  else{	
    $w("#box143").collapse(); // is logged in option (owner)
    $w("#box145").collapse(); // is not logged in option
    $w("#box144").expand(); // is logged in option (not owner)
  } 
}
else { 	
$w("#box143").collapse(); // is logged in option (owner)
$w("#box144").collapse(); // is logged in option (not owner)
$w("#box145").expand(); // is not logged in option
  }
}