[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/inc class.Template3.inc.ph
From: |
Michael Totschnig <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/inc class.Template3.inc.php,1.9,1.10 class.sitebo.inc.php,1.5,1.6 |
Date: |
Sat, 31 May 2003 00:29:24 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/sitemgr-site/inc
In directory subversions:/tmp/cvs-serv14528/sitemgr-site/inc
Modified Files:
class.Template3.inc.php class.sitebo.inc.php
Log Message:
show edit link only for editable blocks
Index: class.Template3.inc.php
===================================================================
RCS file:
/cvsroot/phpgroupware/sitemgr/sitemgr-site/inc/class.Template3.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** class.Template3.inc.php 30 May 2003 23:17:46 -0000 1.9
--- class.Template3.inc.php 31 May 2003 04:29:22 -0000 1.10
***************
*** 199,203 ****
$moduleobject->add_transformer($transformer);
}
! if
(($GLOBALS['sitemgr_info']['mode'] == 'Edit') && $block->id &&
is_object($this->edit_transformer))
{
$this->edit_transformer->block_id = $block->id;
--- 199,207 ----
$moduleobject->add_transformer($transformer);
}
! if (
!
($GLOBALS['sitemgr_info']['mode'] == 'Edit') &&
! $block->id &&
!
$GLOBALS['Common_BO']->acl->can_write_category($block->cat_id) &&
!
is_object($this->edit_transformer))
{
$this->edit_transformer->block_id = $block->id;
Index: class.sitebo.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/sitemgr-site/inc/class.sitebo.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.sitebo.inc.php 30 May 2003 23:17:46 -0000 1.5
--- class.sitebo.inc.php 31 May 2003 04:29:22 -0000 1.6
***************
*** 24,28 ****
$this->isadmin = $this->acl->is_admin;
//$anonymous_user is globally set in config.inc.php
! $this->isuser = ($phpgw_info['user']['account_lid'] !=
$anonymous_user);
}
--- 24,28 ----
$this->isadmin = $this->acl->is_admin;
//$anonymous_user is globally set in config.inc.php
! $this->isuser =
($GLOBALS['phpgw_info']['user']['account_lid'] != $GLOBALS['anonymous_user']);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/sitemgr-site/inc class.Template3.inc.php,1.9,1.10 class.sitebo.inc.php,1.5,1.6,
Michael Totschnig <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/doc sitemgr.html,NONE,1.1 sitemgr.lyx,NONE,1.1 sitemgr.pdf,NONE,1.1 sitemgr.sgml,NONE,1.1 makedoc.sh,1.1,1.2 modules.dvi,1.3,NONE modules.html,1.3,NONE modules.pdf,1.3,NONE modules.ps,1.3,NONE modules.sgml,1.3,NONE modules.txt,1.3,NONE
- Next by Date:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Pages_BO.inc.php,1.8,1.9
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/doc sitemgr.html,NONE,1.1 sitemgr.lyx,NONE,1.1 sitemgr.pdf,NONE,1.1 sitemgr.sgml,NONE,1.1 makedoc.sh,1.1,1.2 modules.dvi,1.3,NONE modules.html,1.3,NONE modules.pdf,1.3,NONE modules.ps,1.3,NONE modules.sgml,1.3,NONE modules.txt,1.3,NONE
- Next by thread:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Pages_BO.inc.php,1.8,1.9
- Index(es):