[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.8,1.9
From: |
Michael Totschnig <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.8,1.9 class.Categories_UI.inc.php,1.4,1.5 class.Sites_UI.inc.php,1.3,1.4 |
Date: |
Fri, 23 May 2003 02:56:41 -0400 |
Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv23409/inc
Modified Files:
class.Categories_BO.inc.php class.Categories_UI.inc.php
class.Sites_UI.inc.php
Log Message:
changes to ACL, write acess to a category now implies read access
Index: class.Categories_BO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Categories_BO.inc.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** class.Categories_BO.inc.php 23 May 2003 03:37:25 -0000 1.8
--- class.Categories_BO.inc.php 23 May 2003 06:56:39 -0000 1.9
***************
*** 91,95 ****
}
}
- //print_r($permitted_list);
return $permitted_list;
}
--- 91,94 ----
***************
*** 320,323 ****
--- 319,324 ----
break;
case 'write':
+ //write
access implies read access, otherwise editing blocks would not work
+
$can_read = true;
$can_write = true;
break;
Index: class.Categories_UI.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Categories_UI.inc.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** class.Categories_UI.inc.php 23 May 2003 03:37:25 -0000 1.4
--- class.Categories_UI.inc.php 23 May 2003 06:56:39 -0000 1.5
***************
*** 55,59 ****
{
$this->cat =
$this->cat_bo->getCategory($this->cat_list[$i],$this->sitelanguages[0]);
! if ($this->cat->depth)
{
$buffer = '-';
--- 55,60 ----
{
$this->cat =
$this->cat_bo->getCategory($this->cat_list[$i],$this->sitelanguages[0]);
!
! if ($this->cat->depth>1)
{
$buffer = '-';
***************
*** 113,124 ****
}
! $this->t->set_var('add',
! '<form action="'.
! $GLOBALS['phpgw']->link('/index.php',
!
'menuaction=sitemgr.Categories_UI._editCategory').
! '" method="POST">
! <input type=submit value = "' . lang('Add a
category') .'">
! </form>'
! );
$this->t->set_var('managepageslink',$GLOBALS['phpgw']->link(
'/index.php',
--- 114,129 ----
}
! if ($this->isadmin)
! {
! $this->t->set_var('add',
! '<form action="'.
! $GLOBALS['phpgw']->link('/index.php',
!
'menuaction=sitemgr.Categories_UI._editCategory').
! '" method="POST">
! <input type=submit value = "' .
lang('Add a category') .'">
! </form>'
! );
! }
!
$this->t->set_var('managepageslink',$GLOBALS['phpgw']->link(
'/index.php',
***************
*** 216,219 ****
--- 221,225 ----
'lang_readperm' => lang('Read Permission'),
'lang_writeperm' => lang('Write Permission'),
+ 'lang_implies' => lang('implies read
permission'),
'lang_useraccess' => lang('Individual Access
Permission'),
'lang_username' => lang('User Name'),
Index: class.Sites_UI.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Sites_UI.inc.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** class.Sites_UI.inc.php 23 May 2003 03:37:25 -0000 1.3
--- class.Sites_UI.inc.php 23 May 2003 06:56:39 -0000 1.4
***************
*** 245,249 ****
$accounts = $GLOBALS['phpgw']->accounts->get_list();
$admin_list = $this->bo->get_adminlist($site_id);
! print_r($admin_list);
while (list($null,$account) = each($accounts))
{
--- 245,249 ----
$accounts = $GLOBALS['phpgw']->accounts->get_list();
$admin_list = $this->bo->get_adminlist($site_id);
!
while (list($null,$account) = each($accounts))
{
***************
*** 282,285 ****
--- 282,287 ----
echo parse_navbar();
+ $site = $this->bo->read($site_id);
+
$GLOBALS['phpgw']->template->set_file(array('site_delete' =>
'delete_common.tpl'));
***************
*** 287,291 ****
'form_action' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=sitemgr.Sites_UI.delete'),
'hidden_vars' => '<input type="hidden"
name="site_id" value="' . $site_id .
'"><script>document.yesbutton.yesbutton.focus()</script>',
! 'messages' => lang('Are you sure you
want to delete this site and all its content?'),
'no' => lang('No'),
'yes' => lang('Yes'),
--- 289,293 ----
'form_action' =>
$GLOBALS['phpgw']->link('/index.php','menuaction=sitemgr.Sites_UI.delete'),
'hidden_vars' => '<input type="hidden"
name="site_id" value="' . $site_id .
'"><script>document.yesbutton.yesbutton.focus()</script>',
! 'messages' => lang('Are you sure you
want to delete site %1 and all its content? You cannot retrieve it if you
continue.',$site['site_name']),
'no' => lang('No'),
'yes' => lang('Yes'),
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: sitemgr/inc class.Categories_BO.inc.php,1.8,1.9 class.Categories_UI.inc.php,1.4,1.5 class.Sites_UI.inc.php,1.3,1.4,
Michael Totschnig <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/templates/default delete_common.tpl,1.1,1.2 edit_category.tpl,1.6,1.7
- Next by Date:
[Phpgroupware-cvs] CVS: property/inc class.boadmin.inc.php,1.5,1.6 class.boapartment.inc.php,1.2,1.3 class.bobuilding.inc.php,1.6,1.7 class.bocategory.inc.php,1.2,1.3 class.bocommon.inc.php,1.47,1.48 class.bodocument.inc.php,1.5,1.6 class.bodrawing.inc.php,1.4,1.5 class.boentrance.inc.php,1.4,1.5 class.boequipment.inc.php,1.8,1.9 class.bogab.inc.php,1.3,1.4 class.boinvestment.inc.php,1.8,1.9 class.boinvoice.inc.php,1.17,1.18 class.bolookup.inc.php,1.6,1.7 class.bometer.inc.php,1.1,1.2 class.boowner.inc.php,1.2,1.3 class.boproject.inc.php,1.3,1.4 class.boproperty.inc.php,1.6,1.7 class.boreport.inc.php,1.3,1.4 class.borequest.inc.php,1.2,1.3 class.bostandard_2.inc.php,1.3,1.4class.bostandard_3.inc.php,1.2,1.3 class.bostandard_entity.inc.php,1.9,1.10 class.botemplate.inc.php,1.1,1.2 class.botts.inc.php,1.10,1.11 class.bowo_hour.inc.php,1.7,1.8 class.boworkorder.inc.php,1.9,1.10 class.uiadmin.inc.php,1.10,1.11 class.uiapartment.inc.php,1.11,1.12 class.uicategory.inc.php,1.3,1.4 class.uidocument.inc.php,1.8,1.9 class.uidrawing.inc.php,1.18,1.19class.uientrance.inc.php,1.12,1.13 class.uiequipment.inc.php,1.21,1.22 class.uigab.inc.php,1.4,1.5 class.uiinvestment.inc.php,1.18,1.19 class.uiinvoice.inc.php,1.24,1.25 class.uilookup.inc.php,1.18,1.19 class.uimeter.inc.php,1.9,1.10 class.uiowner.inc.php,1.4,1.5 class.uipricebook.inc.php,1.15,1.16class.uiproject.inc.php,1.20,1.21 class.uiproperty.inc.php,1.23,1.24 class.uireport.inc.php,1.4,1.5 class.uirequest.inc.php,1.14,1.15class.uistandard_2.inc.php,1.11,1.12 class.uistandard_3.inc.php,1.10,1.11 class.uistandard_entity.inc.php,1.13,1.14 class.uitemplate.inc.php,1.9,1.10 class.uitenant.inc.php,1.1,1.2 class.uitts.inc.php,1.26,1.27 class.uiwo_hour.inc.php,1.23,1.24 class.uiworkorder.inc.php,1.20,1.21
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/templates/default delete_common.tpl,1.1,1.2 edit_category.tpl,1.6,1.7
- Next by thread:
[Phpgroupware-cvs] CVS: property/inc class.boadmin.inc.php,1.5,1.6 class.boapartment.inc.php,1.2,1.3 class.bobuilding.inc.php,1.6,1.7 class.bocategory.inc.php,1.2,1.3 class.bocommon.inc.php,1.47,1.48 class.bodocument.inc.php,1.5,1.6 class.bodrawing.inc.php,1.4,1.5 class.boentrance.inc.php,1.4,1.5 class.boequipment.inc.php,1.8,1.9 class.bogab.inc.php,1.3,1.4 class.boinvestment.inc.php,1.8,1.9 class.boinvoice.inc.php,1.17,1.18 class.bolookup.inc.php,1.6,1.7 class.bometer.inc.php,1.1,1.2 class.boowner.inc.php,1.2,1.3 class.boproject.inc.php,1.3,1.4 class.boproperty.inc.php,1.6,1.7 class.boreport.inc.php,1.3,1.4 class.borequest.inc.php,1.2,1.3 class.bostandard_2.inc.php,1.3,1.4class.bostandard_3.inc.php,1.2,1.3 class.bostandard_entity.inc.php,1.9,1.10 class.botemplate.inc.php,1.1,1.2 class.botts.inc.php,1.10,1.11 class.bowo_hour.inc.php,1.7,1.8 class.boworkorder.inc.php,1.9,1.10 class.uiadmin.inc.php,1.10,1.11 class.uiapartment.inc.php,1.11,1.12 class.uicategory.inc.php,1.3,1.4 class.uidocument.inc.php,1.8,1.9 class.uidrawing.inc.php,1.18,1.19class.uientrance.inc.php,1.12,1.13 class.uiequipment.inc.php,1.21,1.22 class.uigab.inc.php,1.4,1.5 class.uiinvestment.inc.php,1.18,1.19 class.uiinvoice.inc.php,1.24,1.25 class.uilookup.inc.php,1.18,1.19 class.uimeter.inc.php,1.9,1.10 class.uiowner.inc.php,1.4,1.5 class.uipricebook.inc.php,1.15,1.16class.uiproject.inc.php,1.20,1.21 class.uiproperty.inc.php,1.23,1.24 class.uireport.inc.php,1.4,1.5 class.uirequest.inc.php,1.14,1.15class.uistandard_2.inc.php,1.11,1.12 class.uistandard_3.inc.php,1.10,1.11 class.uistandard_entity.inc.php,1.13,1.14 class.uitemplate.inc.php,1.9,1.10 class.uitenant.inc.php,1.1,1.2 class.uitts.inc.php,1.26,1.27 class.uiwo_hour.inc.php,1.23,1.24 class.uiworkorder.inc.php,1.20,1.21
- Index(es):