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));
|
||||
}
|
||||
|
||||
$permissiontoadd = $caneditfield;
|
||||
$permtoedit = $caneditfield;
|
||||
|
||||
// Security check
|
||||
$socid = 0;
|
||||
if ($user->socid > 0) {
|
||||
@ -174,10 +177,7 @@ if ($object->id) {
|
||||
|
||||
print dol_get_fiche_end();
|
||||
|
||||
|
||||
$modulepart = 'user';
|
||||
$permissiontoadd = $user->rights->user->user->creer;
|
||||
$permtoedit = $user->rights->user->user->creer;
|
||||
$param = '&id='.$object->id;
|
||||
include DOL_DOCUMENT_ROOT.'/core/tpl/document_actions_post_headers.tpl.php';
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user