work on accessories

This commit is contained in:
Cornelius Weiß 2005-02-25 13:18:40 +00:00
parent 325a280162
commit 0c2045d5fa
2 changed files with 16 additions and 1 deletions

View File

@ -75,6 +75,21 @@ class bo_resources
{ {
$readonlys["buyable[$resource[id]]"] = true; $readonlys["buyable[$resource[id]]"] = true;
} }
$readonlys["view_acc[$resource[id]]"] = true;
$links = $this->link->get_links('resources',$resource['id']);
if(count($links) != 0)
{
foreach ($links as $link_num => $link)
{
if($link['app'] == 'resources')
{
if($this->so->get_value('accessory_of',$link['id']) != -1)
{
$readonlys["view_acc[$resource[id]]"] = false;
}
}
}
}
$rows[$num]['picture_thumb'] = $this->get_picture($resource['id']); $rows[$num]['picture_thumb'] = $this->get_picture($resource['id']);
$rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']); $rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']);
} }

View File

@ -1,5 +1,5 @@
<?php <?php
// eTemplates for Application 'resources', generated by soetemplate::dump4setup() 2005-02-25 13:38 // eTemplates for Application 'resources', generated by soetemplate::dump4setup() 2005-02-25 14:18
/* $Id$ */ /* $Id$ */