From 403fe18a4358bc51a293e266d8d80d067687d5d0 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 8 Oct 2010 12:40:37 +0000 Subject: [PATCH] Updated permissions handling -Do not break acl numbers we do not know. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19956 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groupware/FolderWidget/FolderEditDialog.tpl | 10 +++++++--- .../groupware/FolderWidget/class_FolderEditDialog.inc | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl index 844b81fe9..56152b86e 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/FolderEditDialog.tpl @@ -26,9 +26,13 @@ {$item.type} - + {if $permissionCnt == 0 || !isset($permissions[$item.acl])} + + {else} + + {/if} diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc index 5042ac3d5..4af753839 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderEditDialog.inc @@ -21,6 +21,7 @@ class FolderEditDialog extends plugin $smarty = get_smarty(); $smarty->assign('folderItem', $this->folderItem); $smarty->assign('permissions', $this->permissions); + $smarty->assign('permissionCnt', count($this->permissions)); return($smarty->fetch(get_template_path("FolderEditDialog.tpl", TRUE, dirname(__FILE__)))); } -- 2.30.2