Fix: Picto "crer" bookmark conditionn sur les droits et activation du module.

This commit is contained in:
Laurent Destailleur 2006-05-21 11:30:05 +00:00
parent 442f9e7191
commit bc2f693de9
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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

View File

@ -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&amp;socid=".$objsoc->id."&amp;urlsource=".$_SERVER["PHP_SELF"]."?socid=".$objsoc->id;
$head[$h][1] = img_object($langs->trans("BookmarkThisPage"),'bookmark');