public function isUserAdmin()
	{
		$user = $this->getUsersDatabase();
		$sr = $user->getById($this->_context->authenticatedUserId());
		return ($sr->getField($user->getUserTable()->admin) == "yes");
	}
public function isUserAdmin()
	{
		$user = $this->getUsersDatabase();
		$sr = $user->getById($this->_context->authenticatedUserId());
		return ($sr->getField($user->getUserTable()->admin) == "yes");
	}
public function isUserAdmin ( ) { $ user = $ this -> getUsersDatabase ( ) ; $ sr = $ user -> getById ( $ this -> _context -> authenticatedUserId ( ) ) ; return ( $ sr -> getField ( $ user -> getUserTable ( ) -> admin ) == "yes" ) ; }
Return true if the current user is an administrator.

@return bool
Return true if the current user is an administrator .