# Third party users can see short vendor list without permission

**URL:** <https://www.dolibarr.org/forum/t/third-party-users-can-see-short-vendor-list-without-permission/21706>\
**Category:** Using my Dolibarr\
**Tags:** Issue, Linux, v14, Permissions\
**Created:** [January 16, 2022, 9:56am UTC](https://www.dolibarr.org/forum/t/third-party-users-can-see-short-vendor-list-without-permission/21706 "2022-01-16T09:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghonz](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/9dc877/32.png) [@Ghonz](https://www.dolibarr.org/forum/u/Ghonz)\
**Post date:** [January 16, 2022, 9:56am UTC](https://www.dolibarr.org/forum/t/third-party-users-can-see-short-vendor-list-without-permission/21706/1 "2022-01-16T09:56:22Z")

</div>

hello, when creating user third party to access their proposals, orders, invoices they can see some vendors names from widgets in commerce screen even with no permissions to see vendors  
attached 2 screens first one the main commerce screen which show some vendors, the second screen after clicking the full list of vendors which don’t show any vendor (this is good)  
so how to hide the vendors from short list in main commerce area

 ![Screen Shot 2022-01-16 at 11.47.20 AM](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/2/21f855f4c6001e11bc5764de8d0926c28d61b6bd.png)  
 ![Screen Shot 2022-01-16 at 11.55.51 AM](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/5/5b0e6a16d389dc98ffe12f1baeee7472f7426277.png)

---

<div class="post-metadata">

**Author:** ![vasco.josedemelo](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/v/a183cd/32.png) [@vasco.josedemelo](https://www.dolibarr.org/forum/u/vasco.josedemelo)\
**Post date:** [June 6, 2023, 2:41pm UTC](https://www.dolibarr.org/forum/t/third-party-users-can-see-short-vendor-list-without-permission/21706/2 "2023-06-06T14:41:40Z")

</div>

Hello @Ghonz, did you find a solution for this issue ?

Thanks

Vasco

---

<div class="post-metadata">

**Author:** ![Ghonz](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/g/9dc877/32.png) [@Ghonz](https://www.dolibarr.org/forum/u/Ghonz)\
**Post date:** [June 6, 2023, 5:04pm UTC](https://www.dolibarr.org/forum/t/third-party-users-can-see-short-vendor-list-without-permission/21706/3 "2023-06-06T17:04:33Z")

</div>

Hello, yes by editing the php file for the page you need to hide the section should not be seen according to permissions.

our case how to hide Vendors last 3 modified, the easy way add “//” before any line start with word “print”. - ignore double quote - but this also will hide this section from all users and admin - in my case its not important to see last 3 modified suppliers in commerce page.

So i edit the file dolibarr/htdocs/comm/index.php then look for section \*\*\* Last suppliers\*\*  
then type “//” before any line start with “print” to make the line color changed

```
                            $companystatic->email = $objp->email;
                            $companystatic->entity = $objp->entity;
                            $companystatic->canvas = $objp->canvas;

```

// print ‘’;  
// print ‘’.$companystatic-\>getNomUrl(1, ‘supplier’).‘’;  
// print ‘’;

```
                            $obj = $companystatic;
                            $s = '';

```

and

```
                            if (((!empty($conf->fournisseur->enabled) && empty($conf->global->MAIN_USE_NEW_SUPPLIERMOD)) || !empty($conf->supplier_order>
                                    $s .= '<a class="vendor-back" title="'.$langs->trans("Supplier").'" href="'.DOL_URL_ROOT.'/fourn/card.php?socid='.$c>
                            }

```

// print $s;

// print ‘’;  
// print ‘’.dol\_print\_date($db-\>jdate($objp-\>dm), ‘day’).‘’;  
// print ‘’;

```
                            $i++;
                    }
            }

```

good luck

 ![comm 01](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/1/10ad16fb12a0be27c6c53f406130a4cfb7cc47d0.png)  
 ![comm 02](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/f/fea1a78d1b3f9ffa6a60ab56044da07c506777ca.png)
