forked from extern/egroupware
work on accessories
This commit is contained in:
parent
325a280162
commit
0c2045d5fa
@ -75,6 +75,21 @@ class bo_resources
|
||||
{
|
||||
$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]['admin'] = $this->acl->get_cat_admin($resource['cat_id']);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?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$ */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user