From c4af38fe48f4d8f0853144fd8d13bc501e27d7ef Mon Sep 17 00:00:00 2001 From: MaximeBOURMAUD Date: Tue, 19 Sep 2017 11:31:17 +0200 Subject: [PATCH] =?UTF-8?q?Fixes=20issue=20723=20now=20when=20requesting?= =?UTF-8?q?=20an=20private=20id,=20permalink=20isn't=20re=E2=80=A6=20(#771?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fixes issue 723 now when requesting an private id, permalink isn't revealed * remove newline at end of files and one useless line * remove newline at end of files and one useless line * Fixes if condition --- include/section_init.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/section_init.inc.php b/include/section_init.inc.php index e2e0c0712..a5be2844d 100644 --- a/include/section_init.inc.php +++ b/include/section_init.inc.php @@ -625,6 +625,7 @@ if ( 'categories'==$page['section'] and isset($page['category']) ) if ($need_redirect) { + check_restrictions($page['category']['id']); $redirect_url = script_basename()=='picture' ? duplicate_picture_url() : duplicate_index_url(); if (!headers_sent())