[Ampoliros-devel] ampoliros/www/admin auth.php,1.4,1.5
Brought to you by:
burzmali
|
From: <bur...@us...> - 2002-08-30 08:52:30
|
Update of /cvsroot/ampoliros/ampoliros/www/admin
In directory usw-pr-cvs1:/tmp/cvs-serv16752/www/admin
Modified Files:
auth.php
Log Message:
FIXES:
- Fixed sites permissions trouble with adminpages accessible even for not
enabled modules. (wuh)
Index: auth.php
===================================================================
RCS file: /cvsroot/ampoliros/ampoliros/www/admin/auth.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** auth.php 26 Aug 2002 18:34:36 -0000 1.4
--- auth.php 30 Aug 2002 08:52:26 -0000 1.5
***************
*** 190,201 ****
$node_id = $perm->GetNodeIdFromFileName( $gEnv['runtime']['pagename'] );
if ( $node_id )
{
if ( $perm->Check( $node_id, PERMISSIONS_NODETYPE_PAGE ) == PERMISSIONS_NODE_NOTENABLED or ( $sitepage ? !$tmpquery->NumRows() : 0 ) )
{
! $adloc = new Locale( 'amp_misc_auth', $gEnv['user']['locale']['language'] );
! ampdie( $adloc->GetStr( 'nopageauth' ) );
}
}
if ( is_object( $tmpquery ) ) $tmpquery->Free();
--- 190,203 ----
$node_id = $perm->GetNodeIdFromFileName( $gEnv['runtime']['pagename'] );
+ $adloc = new Locale( 'amp_misc_auth', $gEnv['user']['locale']['language'] );
+
if ( $node_id )
{
if ( $perm->Check( $node_id, PERMISSIONS_NODETYPE_PAGE ) == PERMISSIONS_NODE_NOTENABLED or ( $sitepage ? !$tmpquery->NumRows() : 0 ) )
{
! AmpDie( $adloc->GetStr( 'nopageauth' ) );
}
}
+ else AmpDie( $adloc->GetStr( 'nopageauth' ) );
if ( is_object( $tmpquery ) ) $tmpquery->Free();
|