src/Auth/AuthUserTrait.php
public function isMe($userId) {
		$field = $this->getConfig('idColumn');
		return $userId && (string)$userId === (string)$this->user($field);
	}
public function isMe($userId) {
		$field = $this->getConfig('idColumn');
		return $userId && (string)$userId === (string)$this->user($field);
	}
public function isMe ( $ userId ) { $ field = $ this -> getConfig ( 'idColumn' ) ; return $ userId && ( string ) $ userId === ( string ) $ this -> user ( $ field ) ; }
This check can be used to tell if a record that belongs to some user is the
current logged in user

@param string|int $userId
@return bool
This check can be used to tell if a record that belongs to some user is the current logged in user