[Phpslash-commit] CVS: phpslash-ft/public_html/admin pollAdmin.php3,1.7,1.8
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-04-16 15:16:30
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv27082/phpslash-ft/public_html/admin Modified Files: pollAdmin.php3 Log Message: bugfix - [ 544698 ] pollAdmin permissions Index: pollAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/pollAdmin.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pollAdmin.php3 12 Mar 2002 19:00:23 -0000 1.7 --- pollAdmin.php3 16 Apr 2002 15:16:27 -0000 1.8 *************** *** 13,16 **** --- 13,18 ---- *****************************/ + $auth->login_if(!$perm->have_perm('poll')); + /* DEBUG STUFF */ debug("HTTP_POST_VARS" , $HTTP_POST_VARS); *************** *** 56,62 **** } else { // no permissions! ! $auth->auth['error'] = pslgetText("Sorry. You do not have the necessary privilege to view this page."); ! Header("Location: " . $_PSL['rooturl' ."/login.php3"]); ! exit; } --- 58,63 ---- } else { // no permissions! ! titlebar("100%","Error! Invalid Privileges"); ! echo "Sorry. You do not have the necessary privilege to view this page."; } |