diff --git a/htdocs/categories/edit.php b/htdocs/categories/edit.php index ca82944a32a..015b964d452 100644 --- a/htdocs/categories/edit.php +++ b/htdocs/categories/edit.php @@ -1,7 +1,7 @@ * Copyright (C) 2006-2010 Laurent Destailleur - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * Copyright (C) 2007 Patrick Raguin * * This program is free software; you can redistribute it and/or modify @@ -41,7 +41,7 @@ if ($id == "") } // Security check -$result = restrictedArea($user, 'categorie', $id); +$result = restrictedArea($user, 'categorie', $id, '&category'); diff --git a/htdocs/categories/photos.php b/htdocs/categories/photos.php index 747d2c92a5b..7730347f286 100644 --- a/htdocs/categories/photos.php +++ b/htdocs/categories/photos.php @@ -2,7 +2,7 @@ /* Copyright (C) 2001-2007 Rodolphe Quiedeville * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005 Eric Seigne - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -48,7 +48,7 @@ if ($id == "") } // Security check -$result = restrictedArea($user, 'categorie', $id); +$result = restrictedArea($user, 'categorie', $id, '&category'); $object = new Categorie($db); diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 5efa8c9ecec..bcf8fd65675 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -2,7 +2,7 @@ /* Copyright (C) 2005 Matthieu Valleton * Copyright (C) 2006-2010 Laurent Destailleur * Copyright (C) 2007 Patrick Raguin - * Copyright (C) 2005-2011 Regis Houssin + * Copyright (C) 2005-2012 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -44,7 +44,7 @@ if ($id == "") } // Security check -$result = restrictedArea($user, 'categorie', $id); +$result = restrictedArea($user, 'categorie', $id, '&category'); $object = new Categorie($db); $result=$object->fetch($id);