From 72d4aa87a03ea4b49f584470bcba3cdbb1c947cd Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 19 Jul 2011 16:25:31 +0200 Subject: [PATCH] fixed usage of $__wcf->user->getPermission() --- .../templates/packageUninstallationDependencies.tpl | 4 ++-- wcfsetup/install/files/acp/templates/packageView.tpl | 12 ++++++------ .../files/acp/templates/usersMassProcessing.tpl | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl b/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl index 02dabd785f..4de1d5b04a 100644 --- a/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl +++ b/wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl @@ -89,12 +89,12 @@ {foreach from=$dependentPackages item=package} - {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')} + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} {else} {/if} - {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} + {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} {else} diff --git a/wcfsetup/install/files/acp/templates/packageView.tpl b/wcfsetup/install/files/acp/templates/packageView.tpl index 8aa426c740..16eafd0936 100644 --- a/wcfsetup/install/files/acp/templates/packageView.tpl +++ b/wcfsetup/install/files/acp/templates/packageView.tpl @@ -85,9 +85,9 @@ @@ -120,12 +120,12 @@ {foreach from=$requiredPackages item=$package} - {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')} + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} {else} {/if} - {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} + {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} {else} @@ -189,12 +189,12 @@ {foreach from=$dependentPackages item=$package} - {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')} + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')} {else} {/if} - {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} + {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID} {else} diff --git a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl index 4434bb5da4..d72d8e556e 100644 --- a/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl +++ b/wcfsetup/install/files/acp/templates/usersMassProcessing.tpl @@ -105,7 +105,7 @@ - {if $__wcf->user->getPermission('admin.user.canEditMailAddress')} + {if $__wcf->session->getPermission('admin.user.canEditMailAddress')}
@@ -190,14 +190,14 @@ {lang}wcf.acp.user.massProcessing.action{/lang}
    - {if $__wcf->user->getPermission('admin.user.canMailUser')} + {if $__wcf->session->getPermission('admin.user.canMailUser')}
  • {/if} - {if $__wcf->user->getPermission('admin.user.canEditUser')} + {if $__wcf->session->getPermission('admin.user.canEditUser')}
  • {/if} - {if $__wcf->user->getPermission('admin.user.canDeleteUser')} + {if $__wcf->session->getPermission('admin.user.canDeleteUser')}
  • {/if} {if $additionalActions|isset}{@$additionalActions}{/if} -- 2.20.1