openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 85db7f6317700ad9ff68c687fd465be0d13a2dae
parent b2782c13b7c19ada177729b41c84f869ef931a16
Author: dankert <devnull@localhost>
Date:   Fri, 31 Dec 2004 00:31:27 +0100

Korrektur userIsAdmin()

Diffstat:
actionClasses/ElementAction.class.php | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/actionClasses/ElementAction.class.php b/actionClasses/ElementAction.class.php @@ -20,7 +20,10 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // --------------------------------------------------------------------------- // $Log$ -// Revision 1.8 2004-12-26 20:20:40 dankert +// Revision 1.9 2004-12-30 23:31:27 dankert +// Korrektur userIsAdmin() +// +// Revision 1.8 2004/12/26 20:20:40 dankert // Konstante FILE_SEP benutzen // // Revision 1.7 2004/12/19 14:53:11 dankert @@ -84,7 +87,7 @@ class ElementAction extends Action */ function changetype() { - if ( !$this->userIsAdmin && $this->getRequestVar('type') == 'code' ) + if ( !$this->userIsAdmin() && $this->getRequestVar('type') == 'code' ) { // Code-Elemente fuer Nicht-Administratoren nicht benutzbar } @@ -118,7 +121,7 @@ class ElementAction extends Action } // Code-Element nur fuer Administratoren (da voller Systemzugriff!) - if ( !$this->userIsAdmin ) + if ( !$this->userIsAdmin() ) unset( $types['code'] ); $this->setTemplateVar('type',$types);