class Pman_Core_Images extends Pman
{
- var $public_image_table = array();
+ // tables that do not need authentication checks before serving.
+ var $public_image_tables = array();
+
function getAuth()
{
$this->imgErr("image has been removed or deleted.",$s);
}
- if (!$this->authUser) {
+ if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) {
if ($img->ontable != 'core_company') {
- $this->imgErr("not-authenticated",$s);
+ $this->imgErr("not-authenticated {$img->ontable}",$s);
}
if ($img->imgtype != 'LOGO') {
$this->imgErr("not-logo",$s);