You are here

public function NodeMeeting::isOwner in BigBlueButton 8

Check if user is meeting owner.

File

modules/bbb_node/src/Service/NodeMeeting.php, line 57

Class

NodeMeeting
Class NodeMeeting.

Namespace

Drupal\bbb_node\Service

Code

public function isOwner(NodeInterface $node, $account = NULL) {
  if (!$account) {
    $account = $this->currentUser;
  }
  return $account
    ->id() === $node
    ->getOwnerId();
}