phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] hrm/inc class.uijob.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] hrm/inc class.uijob.inc.php
Date: Fri, 24 Feb 2006 13:24:28 +0000

CVSROOT:        /sources/phpgroupware
Module name:    hrm
Branch:         
Changes by:     Sigurd Nes <address@hidden>     06/02/24 13:24:28

Modified files:
        inc            : class.uijob.inc.php 

Log message:
        Added inheritance of rights

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/hrm/inc/class.uijob.inc.php.diff?tr1=1.16&tr2=1.17&r1=text&r2=text

Patches:
Index: hrm/inc/class.uijob.inc.php
diff -u hrm/inc/class.uijob.inc.php:1.16 hrm/inc/class.uijob.inc.php:1.17
--- hrm/inc/class.uijob.inc.php:1.16    Mon Dec  5 10:21:00 2005
+++ hrm/inc/class.uijob.inc.php Fri Feb 24 13:24:28 2006
@@ -8,7 +8,7 @@
        * @internal Development of this application was funded by 
http://www.bergen.kommune.no/bbb_/ekstern/
        * @package hrm
        * @subpackage job
-       * @version $Id: class.uijob.inc.php,v 1.16 2005/12/05 10:21:00 sigurdne 
Exp $
+       * @version $Id: class.uijob.inc.php,v 1.17 2006/02/24 13:24:28 sigurdne 
Exp $
        */
 
        /**
@@ -78,7 +78,7 @@
                {
                        $links = $this->menu->links('job_type');
 
-                       if(!$this->acl->check('job', PHPGW_ACL_READ))
+                       if(!$this->acl->check('.job', PHPGW_ACL_READ))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -216,7 +216,7 @@
 
                function task()
                {
-                       if(!$this->acl->check('job', PHPGW_ACL_READ))
+                       if(!$this->acl->check('.job', PHPGW_ACL_READ))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -345,7 +345,7 @@
 
                function lookup_task()
                {
-                       if(!$this->acl->check('job', PHPGW_ACL_ADD))
+                       if(!$this->acl->check('.job', PHPGW_ACL_ADD))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -364,7 +364,7 @@
 
                        $dateformat = 
$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'];
 
-                       if($this->acl->check('job', PHPGW_ACL_EDIT))
+                       if($this->acl->check('.job', PHPGW_ACL_EDIT))
                        {
                                $allowed_edit = true;
                        }
@@ -622,7 +622,7 @@
 
                        if(!$id)
                        {
-                               if(!$this->acl->check('job', PHPGW_ACL_ADD))
+                               if(!$this->acl->check('.job', PHPGW_ACL_ADD))
                                {
                                        $this->bocommon->no_access($links);
                                        return;
@@ -630,7 +630,7 @@
                        }
                        else
                        {
-                               if(!$this->acl->check('job', PHPGW_ACL_EDIT))
+                               if(!$this->acl->check('.job', PHPGW_ACL_EDIT))
                                {
                                        $this->bocommon->no_access($links);
                                        return;
@@ -743,7 +743,7 @@
                        $id             = get_var('id',array('POST','GET'));
                        $parent_id      = 
get_var('parent_id',array('POST','GET'));
 
-                       if(!$this->acl->check('job', PHPGW_ACL_READ))
+                       if(!$this->acl->check('.job', PHPGW_ACL_READ))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -815,7 +815,7 @@
 
                        if(!$task_id)
                        {
-                               if(!$this->acl->check('job', PHPGW_ACL_ADD))
+                               if(!$this->acl->check('.job', PHPGW_ACL_ADD))
                                {
                                        $this->bocommon->no_access($links);
                                        return;
@@ -823,7 +823,7 @@
                        }
                        else
                        {
-                               if(!$this->acl->check('job', PHPGW_ACL_EDIT))
+                               if(!$this->acl->check('.job', PHPGW_ACL_EDIT))
                                {
                                        $this->bocommon->no_access($links);
                                        return;
@@ -974,7 +974,7 @@
                        $task_id        = 
get_var('task_id',array('POST','GET'));
                        $job_id = get_var('job_id',array('POST','GET'));
 
-                       if(!$this->acl->check('job', PHPGW_ACL_READ))
+                       if(!$this->acl->check('.job', PHPGW_ACL_READ))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -1041,7 +1041,7 @@
 
                function delete_job()
                {
-                       if(!$this->acl->check('job', PHPGW_ACL_DELETE))
+                       if(!$this->acl->check('.job', PHPGW_ACL_DELETE))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -1082,7 +1082,7 @@
 
                function delete_task()
                {
-                       if(!$this->acl->check('job', PHPGW_ACL_DELETE))
+                       if(!$this->acl->check('.job', PHPGW_ACL_DELETE))
                        {
                                $this->bocommon->no_access($links);
                                return;
@@ -1126,7 +1126,7 @@
 
                function reset_job_type_hierarchy()
                {
-                       if(!$this->acl->check('job', PHPGW_ACL_DELETE))
+                       if(!$this->acl->check('.job', PHPGW_ACL_DELETE))
                        {
                                $this->bocommon->no_access($links);
                                return;




reply via email to

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