|
From: Ulf E. <ulf...@us...> - 2005-09-02 19:17:32
|
Update of /cvsroot/phpbt/phpbt/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32663/inc Modified Files: auth.php Log Message: Permission fixes for project admins Index: auth.php =================================================================== RCS file: /cvsroot/phpbt/phpbt/inc/auth.php,v retrieving revision 1.22 retrieving revision 1.23 diff -u -r1.22 -r1.23 --- auth.php 27 Aug 2005 13:14:28 -0000 1.22 +++ auth.php 2 Sep 2005 19:17:24 -0000 1.23 @@ -121,7 +121,7 @@ if ($this->have_perm_proj($project_id)) { return true; } else { - $this->perm_invalid($_SESSION['perms'], $p); + $this->perm_invalid($_SESSION['perms']); exit(); } } @@ -182,7 +182,7 @@ } - function perm_invalid($actual_perms, $required_perms) { + function perm_invalid($actual_perms, $required_perms = 0) { global $t; $t->render('badperm.html', ''); |