You are here

public function TMGMTLocalTask::isAuthor in Translation Management Tool 7

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

Parameters

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

File

translators/tmgmt_local/entity/tmgmt_local.entity.task.inc, line 255

Class

TMGMTLocalTask
Entity class for the local task entity.

Code

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