openrat-cms

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

GrouplistAction.class.php (1301B)


      1 <?php
      2 
      3 namespace cms\action;
      4 
      5 use cms\model\Group;
      6 use util\exception\SecurityException;
      7 
      8 // OpenRat Content Management System
      9 // Copyright (C) 2002-2012 Jan Dankert, cms@jandankert.de
     10 //
     11 // This program is free software; you can redistribute it and/or
     12 // modify it under the terms of the GNU General Public License
     13 // as published by the Free Software Foundation; either version 2
     14 // of the License, or (at your option) any later version.
     15 //
     16 // This program is distributed in the hope that it will be useful,
     17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     19 // GNU General Public License for more details.
     20 //
     21 // You should have received a copy of the GNU General Public License
     22 // along with this program; if not, write to the Free Software
     23 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
     24 
     25 
     26 /**
     27  * Action-Klasse zum Bearbeiten einer Benutzergruppe.
     28  *
     29  * @author $Author$
     30  * @version $Revision$
     31  * @package openrat.actions
     32  */
     33 
     34 class GrouplistAction extends BaseAction
     35 {
     36 	function __construct()
     37 	{
     38         parent::__construct();
     39 	}
     40 
     41 
     42 	/**
     43 	 * User must be an administration.
     44 	 */
     45 	public function checkAccess() {
     46 		if   ( ! $this->userIsAdmin() )
     47 			throw new SecurityException();
     48 	}
     49 
     50 
     51 }