return $this->id == $au->company_id;
}
- return $au->hasPerm("Core.".$this->tableName(), $lvl);
- }
+ return $au->hasPerm("Core.Companies", $lvl);
+ }
+
+ function logoImageToHTML($size)
+ {
+ $i = DB_DataObject::factory('Images');
+ if (!$this->logo_id || !$i->get($this->logo_id)) {
+ return '';
+ }
+ return $i->toHTML($size);
+
+ }
+
+
}