New: Task #10725
This commit is contained in:
parent
e152a86eae
commit
c8f4842375
@ -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();
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user