Mise à jour des permissions
This commit is contained in:
parent
c650539ee7
commit
e1cf783a85
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -29,16 +30,17 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
if (!$user->admin && !$user->rights->banque->lire)
|
if (!$user->rights->banque->lire) accessforbidden();
|
||||||
accessforbidden();
|
|
||||||
|
|
||||||
$year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];
|
$year_start=isset($_GET["year_start"])?$_GET["year_start"]:$_POST["year_start"];
|
||||||
$year_current = strftime("%Y",time());
|
$year_current = strftime("%Y",time());
|
||||||
if (! $year_start) {
|
if (! $year_start)
|
||||||
|
{
|
||||||
$year_start = $year_current - 2;
|
$year_start = $year_current - 2;
|
||||||
$year_end = $year_current;
|
$year_end = $year_current;
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
$year_end=$year_start+2;
|
$year_end=$year_start+2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user