Added some security assessments to bookmarks

This commit is contained in:
Raphaël Doursenaud 2013-12-10 11:58:19 +01:00
parent 5e642f3009
commit add5a232ac
2 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,11 @@ require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
$langs->load("other");
// Security check
if (! $user->rights->bookmark->lire) {
restrictedArea($user, 'bookmarks');
}
$id=GETPOST("id");
$action=GETPOST("action","alpha");
$title=GETPOST("title","alpha");

View File

@ -25,6 +25,11 @@ require '../main.inc.php';
require_once DOL_DOCUMENT_ROOT.'/bookmarks/class/bookmark.class.php';
// Security check
if (! $user->rights->bookmark->lire) {
restrictedArea($user, 'bookmarks');
}
$sortfield = GETPOST("sortfield",'alpha');
$sortorder = GETPOST("sortorder",'alpha');
$page = GETPOST("page",'int');