From b6169da570805e1cbedda35919515d7134c1eda7 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 30 Dec 2012 03:20:06 +0100 Subject: [PATCH] ACPMenu should now behave like page menu Fixes #1030 --- com.woltlab.wcf/acpMenu.xml | 49 ++++++++------- .../install/files/acp/templates/header.tpl | 6 +- .../data/acp/menu/item/ACPMenuItem.class.php | 61 ++++++++++++++++++- ...ACPMenuPackageInstallationPlugin.class.php | 24 ++++++++ ...ageMenuPackageInstallationPlugin.class.php | 6 ++ wcfsetup/setup/db/install.sql | 1 + 6 files changed, 120 insertions(+), 27 deletions(-) diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 3f0056c482..3dd0b16712 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -25,7 +25,7 @@ wcf.acp.menu.link.option.management 1 - index.php/OptionImport/ + @@ -42,14 +42,15 @@ - index.php/PackageList/ + wcf.acp.menu.link.package.management admin.system.package.canUpdatePackage,admin.system.package.canUninstallPackage 1 - index.php/PackageStartInstall/?action=install + + wcf.acp.menu.link.package.management admin.system.package.canInstallPackage 2 @@ -61,14 +62,14 @@ - index.php/PackageAutoUpdateList/ + wcf.acp.menu.link.package.update admin.system.package.canUpdatePackage 1 - index.php/PackageUpdateSearch/ + wcf.acp.menu.link.package.update admin.system.package.canInstallPackage,admin.system.package.canUpdatePackage 2 @@ -80,14 +81,14 @@ - index.php/UpdateServerList/ + wcf.acp.menu.link.package.server admin.system.package.canEditServer 1 - index.php/UpdateServerAdd/ + wcf.acp.menu.link.package.server admin.system.package.canEditServer 2 @@ -101,13 +102,13 @@ - index.php/ApplicationManagement/ + wcf.acp.menu.link.application admin.system.canManageApplication - index.php/CacheList/ + wcf.acp.menu.link.application admin.system.canManageApplication @@ -120,14 +121,14 @@ - index.php/CronjobList/ + wcf.acp.menu.link.cronjob admin.system.canManageCronjob 1 - index.php/CronjobAdd/ + wcf.acp.menu.link.cronjob admin.system.canManageCronjob 2 @@ -141,13 +142,13 @@ - index.php/ACPSessionLogList/ + wcf.acp.menu.link.log admin.system.canViewLog - index.php/CronjobLogList/ + wcf.acp.menu.link.log admin.system.canManageCronjob @@ -169,21 +170,21 @@ - index.php/UserList/ + wcf.acp.menu.link.user.management.general admin.user.canSearchUser 1 - index.php/UserAdd/ + wcf.acp.menu.link.user.management.general admin.user.canAddUser 2 - index.php/UserSearch/ + wcf.acp.menu.link.user.management.general admin.user.canSearchUser 3 @@ -195,14 +196,15 @@ - index.php/UsersMassProcessing/ + wcf.acp.menu.link.user.management.additional admin.user.canEditUser,admin.user.canDeleteUser,admin.user.canMailUser 1 - index.php/UserMail/?action=all + + wcf.acp.menu.link.user.management.additional admin.user.canMailUser 2 @@ -221,14 +223,14 @@ - index.php/UserGroupList/ + wcf.acp.menu.link.group.general admin.user.canEditGroup,admin.user.canDeleteGroup 1 - index.php/UserGroupAdd/ + wcf.acp.menu.link.group.general admin.user.canAddGroup 2 @@ -240,7 +242,8 @@ - index.php/UserMail/?action=group + + wcf.acp.menu.link.group.additional admin.user.canMailUser 1 @@ -257,14 +260,14 @@ - index.php/PageMenuItemList/ + wcf.acp.menu.link.pageMenu admin.display.canManagePageMenu 1 - index.php/PageMenuItemAdd/ + wcf.acp.menu.link.pageMenu admin.display.canManagePageMenu 2 diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index ae7a477c93..7195abf09e 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -180,17 +180,17 @@