From 6b2e8ec42ab54722d85375839aae56d1d5b849c8 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 19 Aug 2013 13:32:51 +0000 Subject: [PATCH] --- inc/ws/Controlleur/class.ws.url.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index 3c1d6750a..ffa5bbd03 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -106,7 +106,7 @@ class wsUrl { $res .= '' . date('Y-m-d', $book->date) . ''; $res .= '' . mb_strtoupper($book->lang) . ''; $res .= '' . $book->parametres->pages . ''; - if ($droits->revendeur) { + if ($droits->admin) { $res.='' . $book->demo_counter . ''; } @@ -121,14 +121,14 @@ class wsUrl { $res .= '' . html::escapeHTML($book->facturable) . ''; } if ($droits->revendeur) { - if ($droits->admin || $book->status <= 1) { + if ($droits->admin || $book->status < 1) { $p = ''; if (!is_null($book->projet)) { $p = ' ' . cubeMedia::silk('arrow_right.png') . ''; } $res .= '' . $core->books_status[$book->status] . '' . $p . ''; - } else if ($book->status > 1) { + } else { $res .= '' . $core->books_status[1] . ''; } $res.='' . $book->version . ''; -- 2.39.5