This commit is contained in:
Regis Houssin 2010-10-29 07:35:34 +00:00
parent e152a86eae
commit c8f4842375
2 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ function user_prepare_head($object)
$langs->load("users");
$canreadperms=($user->admin || ($user->id != $object->id && $user->user->user->readperms) || ($user->id == $object->id && $user->user->self->readperms));
$canreadperms=($user->admin || ($user->id != $object->id && $user->rights->user->user->readperms) || ($user->id == $object->id && $user->rights->user->self->readperms));
$h = 0;
$head = array();
@ -105,7 +105,7 @@ function group_prepare_head($object)
{
global $langs, $conf, $user;
$canreadperms=($user->admin || $user->user->group->readperms);
$canreadperms=($user->admin || $user->rights->user->group->readperms);
$h = 0;
$head = array();

View File

@ -61,7 +61,7 @@ print "</table><br>\n";
print '</form>';
// Search Group
if ($user->user->group->read)
if ($user->rights->user->group->read)
{
$var=false;
print '<form method="post" action="'.DOL_URL_ROOT.'/user/group/index.php">';
@ -145,7 +145,7 @@ else
/*
* Derniers groupes crees
*/
if ($user->user->group->read)
if ($user->rights->user->group->read)
{
$max=5;