From: Marcel Werk Date: Tue, 19 Jul 2011 14:25:31 +0000 (+0200) Subject: fixed usage of $__wcf->user->getPermission() X-Git-Tag: 2.0.0_Beta_1~1997 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72d4aa87a03ea4b49f584470bcba3cdbb1c947cd;p=GitHub%2FWoltLab%2FWCF.git fixed usage of $__wcf->user->getPermission() --- 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}