From e1cf783a85e5bf38fe4b43141095e9f8277adf43 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 21 Aug 2005 18:46:50 +0000 Subject: [PATCH] =?UTF-8?q?Mise=20=E0=20jour=20des=20permissions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/bank/annuel.php | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index 3ea898dbc33..1639ce077c8 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -1,5 +1,6 @@ +/* Copyright (C) 2005 Rodolphe Quiedeville + * Copyright (C) 2004-2005 Laurent Destailleur * * 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 @@ -21,25 +22,26 @@ */ /** - \file htdocs/compta/bank/annuel.php - \ingroup banque - \brief Page reporting mensuel Entrées/Sorties d'un compte bancaire - \version $Revision$ + \file htdocs/compta/bank/annuel.php + \ingroup banque + \brief Page reporting mensuel Entrées/Sorties d'un compte bancaire + \version $Revision$ */ require("./pre.inc.php"); -if (!$user->admin && !$user->rights->banque->lire) - accessforbidden(); +if (!$user->rights->banque->lire) accessforbidden(); $year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"]; $year_current = strftime("%Y",time()); -if (! $year_start) { - $year_start = $year_current - 2; - $year_end = $year_current; +if (! $year_start) +{ + $year_start = $year_current - 2; + $year_end = $year_current; } -else { - $year_end=$year_start+2; +else +{ + $year_end=$year_start+2; }