You are here

public function TMGMTJob::isAuthor in Translation Management Tool 7

Checks whether the user described by $account is the author of this job.

Parameters

$account: (Optional) A user object. Defaults to the currently logged in user.

File

entity/tmgmt.entity.job.inc, line 437

Class

TMGMTJob
Entity class for the tmgmt_job entity.

Code

public function isAuthor($account = NULL) {
  $account = isset($account) ? $account : $GLOBALS['user'];
  return $this->uid == $account->uid;
}