fixed usage of $__wcf->user->getPermission()
authorMarcel Werk <burntime@woltlab.com>
Tue, 19 Jul 2011 14:25:31 +0000 (16:25 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 19 Jul 2011 14:25:31 +0000 (16:25 +0200)
wcfsetup/install/files/acp/templates/packageUninstallationDependencies.tpl
wcfsetup/install/files/acp/templates/packageView.tpl
wcfsetup/install/files/acp/templates/usersMassProcessing.tpl

index 02dabd785f6c0faae33c92210fd974b849ef7b7a..4de1d5b04a672f29862f7493556a1538b9a215bd 100644 (file)
                        {foreach from=$dependentPackages item=package}\r
                                <tr class="{cycle values="container-1,container-2"}">\r
                                        <td class="columnIcon">\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}\r
                                                        <a href="index.php?form=PackageStartInstall&amp;action=update&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/packageUpdateS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/packageUpdateDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" />\r
                                                {/if}\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
                                                        <a onclick="return confirm('{lang}wcf.acp.package.view.button.uninstall.sure{/lang}')" href="index.php?page=Package&amp;action=startUninstall&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/deleteDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" />\r
index 8aa426c7404079e11bf693c0d40346a0296538db..16eafd0936dc6e5f2a6154f3f542332ff80b432c 100644 (file)
@@ -85,9 +85,9 @@
                <ul>\r
                        {if PACKAGE_ID != $package->packageID}\r
                                {if $package->standalone && $package->package != 'com.woltlab.wcf'}<li><a href="{@RELATIVE_WCF_DIR}{$package->packageDir}acp/index.php?packageID={@$package->packageID}{@SID_ARG_2ND}" title="{lang}wcf.acp.package.view.button.makeActive{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageMakeActiveM.png" alt="" /> <span>{lang}wcf.acp.package.view.button.makeActive{/lang}</span></a></li>{/if}\r
-                               {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $noDependentIsActive}<li><a href="index.php?page=Package&amp;action=startUninstall&amp;activePackageID={@$package->packageID}{@SID_ARG_2ND}" onclick="return confirm('{lang}wcf.acp.package.view.button.uninstall.sure{/lang}')" title="{lang}wcf.acp.package.view.button.uninstall{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageUninstallM.png" alt="" /> <span>{lang}wcf.acp.package.view.button.uninstall{/lang}</span></a></li>{/if}\r
+                               {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $noDependentIsActive}<li><a href="index.php?page=Package&amp;action=startUninstall&amp;activePackageID={@$package->packageID}{@SID_ARG_2ND}" onclick="return confirm('{lang}wcf.acp.package.view.button.uninstall.sure{/lang}')" title="{lang}wcf.acp.package.view.button.uninstall{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageUninstallM.png" alt="" /> <span>{lang}wcf.acp.package.view.button.uninstall{/lang}</span></a></li>{/if}\r
                        {/if}\r
-                       {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')}<li><a href="index.php?form=PackageStartInstall&amp;action=update&amp;activePackageID={@$package->packageID}{@SID_ARG_2ND}" title="{lang}wcf.acp.package.view.button.update{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageUpdateM.png" alt="" /> <span>{lang}wcf.acp.package.view.button.update{/lang}</span></a></li>{/if}\r
+                       {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}<li><a href="index.php?form=PackageStartInstall&amp;action=update&amp;activePackageID={@$package->packageID}{@SID_ARG_2ND}" title="{lang}wcf.acp.package.view.button.update{/lang}"><img src="{@RELATIVE_WCF_DIR}icon/packageUpdateM.png" alt="" /> <span>{lang}wcf.acp.package.view.button.update{/lang}</span></a></li>{/if}\r
                        {if $additionalLargeButtons|isset}{@$additionalLargeButtons}{/if}\r
                </ul>\r
        </div>\r
                        {foreach from=$requiredPackages item=$package}\r
                                <tr class="{cycle values="container-1,container-2"}">\r
                                        <td class="columnIcon">\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}\r
                                                        <a href="index.php?form=PackageStartInstall&amp;action=update&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/packageUpdateS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/packageUpdateDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" />\r
                                                {/if}\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
                                                        <a onclick="return confirm('{lang}wcf.acp.package.view.button.uninstall.sure{/lang}')" href="index.php?page=Package&amp;action=startUninstall&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/deleteDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" />\r
                        {foreach from=$dependentPackages item=$package}\r
                                <tr class="{cycle values="container-1,container-2"}">\r
                                        <td class="columnIcon">\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUpdatePackage')}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage')}\r
                                                        <a href="index.php?form=PackageStartInstall&amp;action=update&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/packageUpdateS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/packageUpdateDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.update{/lang}" />\r
                                                {/if}\r
-                                               {if $__wcf->user->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
+                                               {if $__wcf->session->getPermission('admin.system.package.canUninstallPackage') && $package.package != 'com.woltlab.wcf' && $package.packageID != PACKAGE_ID}\r
                                                        <a onclick="return confirm('{lang}wcf.acp.package.view.button.uninstall.sure{/lang}')" href="index.php?page=Package&amp;action=startUninstall&amp;activePackageID={@$package.packageID}{@SID_ARG_2ND}"><img src="{@RELATIVE_WCF_DIR}icon/deleteS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" /></a>\r
                                                {else}\r
                                                        <img src="{@RELATIVE_WCF_DIR}icon/deleteDisabledS.png" alt="" title="{lang}wcf.acp.package.view.button.uninstall{/lang}" />\r
index 4434bb5da44771da8bfe42843202c76ae369a25d..d72d8e556e5d35a020d47fc7b01180bdde783045 100644 (file)
                                        </div>\r
                                </div>\r
                                \r
-                               {if $__wcf->user->getPermission('admin.user.canEditMailAddress')}\r
+                               {if $__wcf->session->getPermission('admin.user.canEditMailAddress')}\r
                                        <div class="formElement">\r
                                                <div class="formFieldLabel">\r
                                                        <label for="email">{lang}wcf.user.email{/lang}</label>\r
                                                <legend>{lang}wcf.acp.user.massProcessing.action{/lang}</legend>\r
                                                <div class="formField">\r
                                                        <ul class="formOptionsLong">\r
-                                                               {if $__wcf->user->getPermission('admin.user.canMailUser')}\r
+                                                               {if $__wcf->session->getPermission('admin.user.canMailUser')}\r
                                                                        <li><label><input onclick="if (IS_SAFARI) enableSendMail()" onfocus="enableSendMail()" type="radio" name="action" value="sendMail" {if $action == 'sendMail'}checked="checked" {/if}/> {lang}wcf.acp.user.sendMail{/lang}</label></li>\r
                                                                        <li><label><input onclick="if (IS_SAFARI) enableExportMailAddress()" onfocus="enableExportMailAddress()" type="radio" name="action" value="exportMailAddress" {if $action == 'exportMailAddress'}checked="checked" {/if}/> {lang}wcf.acp.user.exportEmailAddress{/lang}</label></li>\r
                                                                {/if}\r
-                                                               {if $__wcf->user->getPermission('admin.user.canEditUser')}\r
+                                                               {if $__wcf->session->getPermission('admin.user.canEditUser')}\r
                                                                        <li><label><input onclick="if (IS_SAFARI) enableAssignToGroup()" onfocus="enableAssignToGroup()" type="radio" name="action" value="assignToGroup" {if $action == 'assignToGroup'}checked="checked" {/if}/> {lang}wcf.acp.user.assignToGroup{/lang}</label></li>\r
                                                                {/if}\r
-                                                               {if $__wcf->user->getPermission('admin.user.canDeleteUser')}\r
+                                                               {if $__wcf->session->getPermission('admin.user.canDeleteUser')}\r
                                                                        <li><label><input onclick="if (IS_SAFARI) enableDelete()" onfocus="enableDelete()" type="radio" name="action" value="delete" {if $action == 'delete'}checked="checked" {/if}/> {lang}wcf.acp.user.delete{/lang}</label></li>\r
                                                                {/if}\r
                                                                {if $additionalActions|isset}{@$additionalActions}{/if}\r