diff --git a/htdocs/includes/modules/modBookmark.class.php b/htdocs/includes/modules/modBookmark.class.php index c8a3284fbdf..8fe5b8246b5 100644 --- a/htdocs/includes/modules/modBookmark.class.php +++ b/htdocs/includes/modules/modBookmark.class.php @@ -1,6 +1,6 @@ - * Copyright (C) 2005 Laurent Destailleur +/* Copyright (C) 2005 Rodolphe Quiedeville + * Copyright (C) 2005-2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/lib/company.lib.php b/htdocs/lib/company.lib.php index e9652bd8075..ff9e4bade09 100644 --- a/htdocs/lib/company.lib.php +++ b/htdocs/lib/company.lib.php @@ -31,7 +31,7 @@ function societe_prepare_head($objsoc) { - global $langs, $conf; + global $langs, $conf, $user; $h = 0; $head = array(); @@ -97,7 +97,7 @@ function societe_prepare_head($objsoc) $head[$h][2] = 'info'; $h++; - if ($user->societe_id == 0) + if ($conf->bookmark->enabled && $user->rights->bookmark->creer) { $head[$h][0] = DOL_URL_ROOT."/bookmarks/fiche.php?action=add&socid=".$objsoc->id."&urlsource=".$_SERVER["PHP_SELF"]."?socid=".$objsoc->id; $head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');