summaryrefslogtreecommitdiff
path: root/php/admin
diff options
context:
space:
mode:
authorSteffen Hansen <steffen@kdab.com>2006-05-17 23:15:32 (GMT)
committerSteffen Hansen <steffen@kdab.com>2006-05-17 23:15:32 (GMT)
commitd928a88932571cf83e7c0fd4aaeedad8dfe66d5c (patch)
treedcb06a454bac0e646ac9c249af3f092c9ddab399 /php/admin
parent15bead80f3603902657f89a4ab8787c360dc4b7c (diff)
downloadkolab-webadmin-d928a88932571cf83e7c0fd4aaeedad8dfe66d5c.tar.gz
patches from wrobel
Diffstat (limited to 'php/admin')
-rw-r--r--php/admin/include/menu.php18
1 files changed, 14 insertions, 4 deletions
diff --git a/php/admin/include/menu.php b/php/admin/include/menu.php
index 16964ee..5736a68 100644
--- a/php/admin/include/menu.php
+++ b/php/admin/include/menu.php
@@ -41,13 +41,16 @@ if( $auth->group() == "admin" || $auth->group() == "maintainer" || $auth->group(
array( 'name' => _('Vacation'),
'url' => 'vacation.php' )));
}
-if( $auth->group() == "admin" || $auth->group() == "maintainer" || $auth->group() == 'domain-maintainer') {
+if( $auth->group() == "admin" || $auth->group() == "maintainer") {
$menuitems['addressbook'] = array( 'name' => _('Addressbook'),
'url' => $topdir.'/addressbook/',
'title' => _('Manage Address Book'),
'submenu' => array(
array( 'name' => _('Create New vCard'),
'url' => 'addr.php?action=create' )));
+
+}
+if( $auth->group() == "admin" || $auth->group() == "maintainer" || $auth->group() == 'domain-maintainer') {
$menuitems['sf'] = array( 'name' => _('Shared Folder'),
'url' => $topdir.'/sharedfolder/',
'title' => _('Manage Shared Folders'),
@@ -76,8 +79,6 @@ if( $auth->group() == 'admin' ) {
'submenu' => array(
array( 'name' => _('Create New Domain Maintainer'),
'url' => 'domainmaintainer.php?action=create' ) ) );
-}
-if( $auth->group() == 'admin' ) {
$menuitems['maintainer'] = array( 'name' => _('Maintainers'),
'url' => $topdir.'/maintainer/',
'title' => _('Manage Maintainers'),
@@ -89,8 +90,17 @@ if( $auth->group() == 'admin' ) {
$menuitems['maintainer'] = array( 'name' => _('Maintainers'),
'url' => $topdir.'/maintainer/maintainer.php?action=modify&dn='.urlencode($mdn),
'title' => _('Manage Maintainer') );
+ $menuitems['domain-maintainer'] = array( 'name' => _('Domain Maintainers'),
+ 'url' => $topdir.'/domainmaintainer/',
+ 'title' => _('Manage Domain Maintainers'),
+ 'submenu' => array(
+ array( 'name' => _('Create New Domain Maintainer'),
+ 'url' => 'domainmaintainer.php?action=create' ) ) );
} else if( $auth->group() == 'domain-maintainer' ) {
- // Domain maintainer
+ $mdn = $auth->dn();
+ $menuitems['domain-maintainer'] = array( 'name' => _('Domain Maintainers'),
+ 'url' => $topdir.'/domainmaintainer/domainmaintainer.php?action=modify&dn='.urlencode($mdn),
+ 'title' => _('Manage Domain Maintainer') );
}
if( $auth->group() == 'admin' ) {
$menuitems['service'] = array( 'name' => _('Services'),