Fix user can't edit record
This commit is contained in:
parent
d1ffd4fcc8
commit
7f3c8b4cd5
@ -60,6 +60,9 @@ if ($id) {
|
|||||||
|| (($user->id != $id) && $user->rights->user->user->password));
|
|| (($user->id != $id) && $user->rights->user->user->password));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$permissiontoadd = $caneditfield;
|
||||||
|
$permtoedit = $caneditfield;
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
$socid = 0;
|
$socid = 0;
|
||||||
if ($user->socid > 0) {
|
if ($user->socid > 0) {
|
||||||
@ -174,10 +177,7 @@ if ($object->id) {
|
|||||||
|
|
||||||
print dol_get_fiche_end();
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
|
|
||||||
$modulepart = 'user';
|
$modulepart = 'user';
|
||||||
$permissiontoadd = $user->rights->user->user->creer;
|
|
||||||
$permtoedit = $user->rights->user->user->creer;
|
|
||||||
$param = '&id='.$object->id;
|
$param = '&id='.$object->id;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user