'."\n";
+ $editmode = (GETPOST('action', 'aZ09') == 'edit'.$note_private);
+ print '
'."\n";
print $form->editfieldkey("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, $moreparam, '', 0);
print '
'."\n";
- print '
'."\n";
+ print '
'."\n";
print $form->editfieldval("NotePrivate", $note_private, $value_private, $object, $permission, $typeofdata, '', null, null, $moreparam, 1);
print '
'."\n";
print '
'."\n";
diff --git a/htdocs/theme/eldy/global.inc.php b/htdocs/theme/eldy/global.inc.php
index e0800d2a5f9..bcbeba44f46 100644
--- a/htdocs/theme/eldy/global.inc.php
+++ b/htdocs/theme/eldy/global.inc.php
@@ -111,6 +111,7 @@ body {
trans("DIRECTION").";\n"; ?>
}
+/* Style used to protect html content in output to avoid attack by replacing full page with js content */
.sensiblehtmlcontent * {
position: static !important;
}
diff --git a/htdocs/user/note.php b/htdocs/user/note.php
index 60b9a3b6be2..cb38fd3c4ac 100644
--- a/htdocs/user/note.php
+++ b/htdocs/user/note.php
@@ -109,10 +109,12 @@ if ($id)
// Login
print '
| '.$langs->trans("Login").' | '.$object->login.' |
';
+ $editenabled = (($action == 'edit') && !empty($user->rights->user->user->creer));
+
// Note
print '
| '.$langs->trans("Note").' | ';
- print '';
- if ($action == 'edit' && $user->rights->user->user->creer)
+ print ' | ';
+ if ($editenabled)
{
print "";
print "id."\">";
|