phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sms/inc class.uiconfig.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] sms/inc class.uiconfig.inc.php
Date: Sat, 27 May 2006 07:56:09 +0000

CVSROOT:        /sources/phpgroupware
Module name:    sms
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/05/27 07:56:08

Modified files:
        inc            : class.uiconfig.inc.php 

Log message:
        

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/sms/inc/class.uiconfig.inc.php.diff?tr1=1.3&tr2=1.4&r1=text&r2=text

Patches:
Index: sms/inc/class.uiconfig.inc.php
diff -u sms/inc/class.uiconfig.inc.php:1.3 sms/inc/class.uiconfig.inc.php:1.4
--- sms/inc/class.uiconfig.inc.php:1.3  Wed May 24 13:32:33 2006
+++ sms/inc/class.uiconfig.inc.php      Sat May 27 07:56:08 2006
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package sms
        * @subpackage config
-       * @version $Id: class.uiconfig.inc.php,v 1.3 2006/05/24 13:32:33 
sigurdne Exp $
+       * @version $Id: class.uiconfig.inc.php,v 1.4 2006/05/27 07:56:08 
sigurdne Exp $
        */
 
        /**
@@ -49,10 +49,9 @@
                        $this->bo                               = 
CreateObject($this->currentapp.'.boconfig',true);
                        $this->bocommon                         = 
CreateObject($this->currentapp.'.bocommon');
                        $this->menu                             = 
CreateObject($this->currentapp.'.menu');
+                       $this->acl                              = 
CreateObject('phpgwapi.acl');
                        $this->acl_location                     = '.config';
-
                        $this->menu->sub                        
=$this->acl_location;
-
                        $this->start                            = 
$this->bo->start;
                        $this->query                            = 
$this->bo->query;
                        $this->sort                             = 
$this->bo->sort;
@@ -74,6 +73,12 @@
 
                function index()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        
$GLOBALS['phpgw']->xslttpl->add_file(array('config','nextmatchs','menu',
                                                                                
'search_field'));
 
@@ -188,6 +193,12 @@
 
                function edit_type()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $values         = get_var('values',array('POST'));
 
@@ -280,6 +291,12 @@
 
                function view_type()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $values         = get_var('values',array('POST'));
 
@@ -318,6 +335,12 @@
 
                function list_attrib()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        
                        if(!$type_id)
@@ -440,6 +463,12 @@
 
                function edit_attrib()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $attrib_id      = 
get_var('attrib_id',array('POST','GET'));
                        $values         = get_var('values',array('POST'));
@@ -562,6 +591,12 @@
 
                function list_value()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $attrib_id      = 
get_var('attrib_id',array('POST','GET'));
                                                
@@ -697,6 +732,12 @@
 
                function edit_value()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $attrib_id      = 
get_var('attrib_id',array('POST','GET'));
                        $id             = get_var('id',array('POST','GET'));
@@ -812,10 +853,14 @@
                        
$GLOBALS['phpgw']->xslttpl->set_var('phpgw',array('edit_value' => $data));
                }
 
-
-
                function delete_type()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $confirm        = get_var('confirm',array('POST'));
 
@@ -853,6 +898,12 @@
 
                function delete_attrib()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $attrib_id      = 
get_var('attrib_id',array('POST','GET'));
                        $confirm        = get_var('confirm',array('POST'));
@@ -893,6 +944,12 @@
 
                function delete_value()
                {
+                       if(!$this->acl->check('run', PHPGW_ACL_READ,'admin'))
+                       {
+                               $this->bocommon->no_access($links);
+                               return;
+                       }
+
                        $type_id        = 
get_var('type_id',array('POST','GET'));
                        $attrib_id      = 
get_var('attrib_id',array('POST','GET'));
                        $id             = get_var('id',array('POST','GET'));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]