<acpmenuitem name="wcf.acp.menu.link.user.option.category.list">
<controller><![CDATA[wcf\acp\page\UserOptionCategoryListPage]]></controller>
<parent>wcf.acp.menu.link.user.option</parent>
- <permissions>admin.user.canManageUserOptionCategory</permissions>
+ <permissions>admin.user.canManageUserOption</permissions>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.user.option.category.add">
<controller><![CDATA[wcf\acp\form\UserOptionCategoryAddForm]]></controller>
<parent>wcf.acp.menu.link.user.option</parent>
- <permissions>admin.user.canManageUserOptionCategory</permissions>
+ <permissions>admin.user.canManageUserOption</permissions>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.user.option.setDefaults">
<acpmenuitem name="wcf.acp.menu.link.style.list">
<controller><![CDATA[wcf\acp\page\StyleListPage]]></controller>
<parent>wcf.acp.menu.link.style</parent>
- <permissions>admin.style.canEditStyle,admin.style.canDeleteStyle</permissions>
+ <permissions>admin.style.canManageStyle</permissions>
<showorder>1</showorder>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.style.add">
<controller><![CDATA[wcf\acp\form\StyleAddForm]]></controller>
<parent>wcf.acp.menu.link.style</parent>
- <permissions>admin.style.canAddStyle</permissions>
+ <permissions>admin.style.canManageStyle</permissions>
<showorder>2</showorder>
</acpmenuitem>
<acpmenuitem name="wcf.acp.menu.link.style.import">
<controller><![CDATA[wcf\acp\form\StyleImportForm]]></controller>
<parent>wcf.acp.menu.link.style</parent>
- <permissions>admin.style.canAddStyle</permissions>
+ <permissions>admin.style.canManageStyle</permissions>
<showorder>3</showorder>
</acpmenuitem>
<!-- /style -->
<acpmenuitem name="wcf.acp.menu.link.language.server.list">
<controller><![CDATA[wcf\acp\page\LanguageServerListPage]]></controller>
<parent>wcf.acp.menu.link.language.server</parent>
- <permissions>admin.language.canManageServer</permissions>
+ <permissions>admin.language.canManageLanguage</permissions>
</acpmenuitem>
<!-- /language -->
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
- <option name="admin.user.canManageUserOptionCategory">
- <categoryname>admin.user.option</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>0</defaultvalue>
- <admindefaultvalue>1</admindefaultvalue>
- </option>
<option name="admin.language.canManageLanguage">
<categoryname>admin.language</categoryname>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
- <option name="admin.language.canManageServer">
- <categoryname>admin.language</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>0</defaultvalue>
- <admindefaultvalue>1</admindefaultvalue>
- </option>
- <option name="admin.style.canAddStyle">
- <categoryname>admin.style</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>0</defaultvalue>
- <admindefaultvalue>1</admindefaultvalue>
- </option>
- <option name="admin.style.canEditStyle">
- <categoryname>admin.style</categoryname>
- <optiontype>boolean</optiontype>
- <defaultvalue>0</defaultvalue>
- <admindefaultvalue>1</admindefaultvalue>
- </option>
- <option name="admin.style.canDeleteStyle">
+ <option name="admin.style.canManageStyle">
<categoryname>admin.style</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
+
<option name="admin.display.canManagePageMenu">
<categoryname>admin.display.pageMenu</categoryname>
<optiontype>boolean</optiontype>
<defaultvalue>0</defaultvalue>
<admindefaultvalue>1</admindefaultvalue>
</option>
+
<option name="admin.template.canManageTemplate">
<categoryname>admin.template</categoryname>
<optiontype>boolean</optiontype>
});
new WCF.ACP.Style.ImageUpload(0, '{$tmpHash}');
- {if $action == 'edit' && $__wcf->getSession()->getPermission('admin.style.canAddStyle')}
+ {if $action == 'edit'}
new WCF.ACP.Style.CopyStyle({@$style->styleID});
WCF.Language.addObject({
{/if}
<div class="contentNavigation">
- {hascontent}
- <nav>
- <ul>
- {content}
- {if $action == 'edit'}
- <li><a href="{link controller='StyleExport' id=$style->styleID}{/link}" class="button"><span class="icon icon16 icon-download-alt"></span> <span>{lang}wcf.acp.style.exportStyle{/lang}</span></a></li>
- {if $__wcf->getSession()->getPermission('admin.style.canAddStyle')}<li><a class="jsCopyStyle button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.style.copyStyle{/lang}</span></a></li>{/if}
- {/if}
-
- {if $__wcf->session->getPermission('admin.style.canDeleteStyle') || $__wcf->session->getPermission('admin.style.canEditStyle')}
- <li><a href="{link controller='StyleList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.style.list{/lang}</span></a></li>
- {/if}
-
- {event name='contentNavigationButtons'}
- {/content}
- </ul>
- </nav>
- {/hascontent}
+ <nav>
+ <ul>
+ {if $action == 'edit'}
+ <li><a href="{link controller='StyleExport' id=$style->styleID}{/link}" class="button"><span class="icon icon16 icon-download-alt"></span> <span>{lang}wcf.acp.style.exportStyle{/lang}</span></a></li>
+ <li><a class="jsCopyStyle button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.style.copyStyle{/lang}</span></a></li>
+ {/if}
+
+ <li><a href="{link controller='StyleList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.style.list{/lang}</span></a></li>
+
+ {event name='contentNavigationButtons'}
+ </ul>
+ </nav>
</div>
<form method="post" action="{if $action == 'add'}{link controller='StyleAdd'}{/link}{else}{link controller='StyleEdit' id=$styleID}{/link}{/if}">
{/if}
<div class="contentNavigation">
- {hascontent}
- <nav>
- <ul>
- {content}
- {if $__wcf->session->getPermission('admin.style.canDeleteStyle') || $__wcf->session->getPermission('admin.style.canEditStyle')}
- <li><a href="{link controller='StyleList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.style.list{/lang}</span></a></li>
- {/if}
-
- {event name='contentNavigationButtons'}
- {/content}
- </ul>
- </nav>
- {/hascontent}
+ <nav>
+ <ul>
+ <li><a href="{link controller='StyleList'}{/link}" class="button"><span class="icon icon16 icon-list"></span> <span>{lang}wcf.acp.menu.link.style.list{/lang}</span></a></li>
+
+ {event name='contentNavigationButtons'}
+ </ul>
+ </nav>
</div>
<form method="post" action="{link controller='StyleImport'}{/link}" enctype="multipart/form-data">
<div class="contentNavigation">
{pages print=true assign=pagesLinks controller="StyleList" link="pageNo=%d"}
- {hascontent}
- <nav>
- <ul>
- {content}
- {if $__wcf->session->getPermission('admin.style.canAddStyle')}
- <li><a href="{link controller='StyleAdd'}{/link}" class="button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
- <li><a href="{link controller='StyleImport'}{/link}" class="button"><span class="icon icon16 icon-upload-alt"></span> <span>{lang}wcf.acp.menu.link.style.import{/lang}</span></a></li>
- {/if}
-
- {event name='contentNavigationButtonsTop'}
- {/content}
- </ul>
- </nav>
- {/hascontent}
+ <nav>
+ <ul>
+ <li><a href="{link controller='StyleAdd'}{/link}" class="button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
+ <li><a href="{link controller='StyleImport'}{/link}" class="button"><span class="icon icon16 icon-upload-alt"></span> <span>{lang}wcf.acp.menu.link.style.import{/lang}</span></a></li>
+
+ {event name='contentNavigationButtonsTop'}
+ </ul>
+ </nav>
</div>
<div class="container marginTop">
<div class="contentNavigation">
{@$pagesLinks}
- {hascontent}
- <nav>
- <ul>
- {content}
- {if $__wcf->session->getPermission('admin.style.canAddStyle')}
- <li><a href="{link controller='StyleAdd'}{/link}" class="button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
- <li><a href="{link controller='StyleImport'}{/link}" class="button"><span class="icon icon16 icon-upload-alt"></span> <span>{lang}wcf.acp.menu.link.style.import{/lang}</span></a></li>
- {/if}
-
- {event name='contentNavigationButtonsBottom'}
- {/content}
- </ul>
- </nav>
- {/hascontent}
+ <nav>
+ <ul>
+ <li><a href="{link controller='StyleAdd'}{/link}" class="button"><span class="icon icon16 icon-plus"></span> <span>{lang}wcf.acp.menu.link.style.add{/lang}</span></a></li>
+ <li><a href="{link controller='StyleImport'}{/link}" class="button"><span class="icon icon16 icon-upload-alt"></span> <span>{lang}wcf.acp.menu.link.style.import{/lang}</span></a></li>
+
+ {event name='contentNavigationButtonsBottom'}
+ </ul>
+ </nav>
</div>
{include file='footer'}
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.language.canManageServer');
+ public $neededPermissions = array('admin.language.canManageLanguage');
/**
* server url
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.language.canManageServer');
+ public $neededPermissions = array('admin.language.canManageLanguage');
/**
* language server id
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.style.canAddStyle');
+ public $neededPermissions = array('admin.style.canManageStyle');
/**
* last change date
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.style.canEditStyle');
+ public $neededPermissions = array('admin.style.canManageStyle');
/**
* style object
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.style.canEditStyle');
+ public $neededPermissions = array('admin.style.canManageStyle');
/**
* package identifier
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.style.canAddStyle');
+ public $neededPermissions = array('admin.style.canManageStyle');
/**
* upload data
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.user.canManageUserOptionCategory');
+ public $neededPermissions = array('admin.user.canManageUserOption');
/**
* category name
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.language.canManageServer');
+ public $neededPermissions = array('admin.language.canManageLanguage');
/**
* @see wcf\page\MultipleLinkPage::$objectListClassName
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.style.canEditStyle', 'admin.style.canDeleteStyle');
+ public $neededPermissions = array('admin.style.canManageStyle');
/**
* @see wcf\page\MultipleLinkPage::$objectListClassName
/**
* @see wcf\page\AbstractPage::$neededPermissions
*/
- public $neededPermissions = array('admin.user.canManageUserOptionCategory');
+ public $neededPermissions = array('admin.user.canManageUserOption');
/**
* @see wcf\page\SortablePage::$defaultSortField
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsCreate
*/
- protected $permissionsCreate = array('admin.language.canManageServer');
+ protected $permissionsCreate = array('admin.language.canManageLanguage');
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
*/
- protected $permissionsDelete = array('admin.language.canManageServer');
+ protected $permissionsDelete = array('admin.language.canManageLanguage');
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
*/
- protected $permissionsUpdate = array('admin.language.canManageServer');
+ protected $permissionsUpdate = array('admin.language.canManageLanguage');
/**
* @see wcf\data\IToggleAction::toggle()
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
*/
- protected $permissionsDelete = array('admin.style.canDeleteStyle');
+ protected $permissionsDelete = array('admin.style.canManageStyle');
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
*/
- protected $permissionsUpdate = array('admin.style.canEditStyle');
+ protected $permissionsUpdate = array('admin.style.canManageStyle');
/**
* style object
*/
public function validateUpload() {
// check upload permissions
- if (!WCF::getSession()->getPermission('admin.style.canAddStyle')) {
+ if (!WCF::getSession()->getPermission('admin.style.canManageStyle')) {
throw new PermissionDeniedException();
}
* Validates parameters to assign a new default style.
*/
public function validateSetAsDefault() {
- if (!WCF::getSession()->getPermission('admin.style.canEditStyle')) {
+ if (!WCF::getSession()->getPermission('admin.style.canManageStyle')) {
throw new PermissionDeniedException();
}
* Validates parameters to copy a style.
*/
public function validateCopy() {
- if (!WCF::getSession()->getPermission('admin.style.canAddStyle')) {
+ if (!WCF::getSession()->getPermission('admin.style.canManageStyle')) {
throw new PermissionDeniedException();
}
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsCreate
*/
- protected $permissionsCreate = array('admin.user.canManageUserOptionCategory');
+ protected $permissionsCreate = array('admin.user.canManageUserOption');
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsDelete
*/
- protected $permissionsDelete = array('admin.user.canManageUserOptionCategory');
+ protected $permissionsDelete = array('admin.user.canManageUserOption');
/**
* @see wcf\data\AbstractDatabaseObjectAction::$permissionsUpdate
*/
- protected $permissionsUpdate = array('admin.user.canManageUserOptionCategory');
+ protected $permissionsUpdate = array('admin.user.canManageUserOption');
}
<item name="wcf.acp.group.option.admin.general.canUseAcp.description"><![CDATA[Mitglieder dieser Benutzergruppe können die Administrationsoberfläche betreten und dort abhängig von den weiteren Zugriffsrechten verschiedene Aktionen durchführen. Diese Option muss aktiviert sein, wenn diesen Benutzern andere administrative Funktionen erlaubt werden sollen.]]></item>
<item name="wcf.acp.group.option.admin.general.canViewPrivateUserOptions"><![CDATA[Kann versteckte Profilinformationen sehen]]></item>
<item name="wcf.acp.group.option.admin.language.canManageLanguage"><![CDATA[Kann Sprachen verwalten]]></item>
- <item name="wcf.acp.group.option.admin.language.canManageServer"><![CDATA[Kann Sprach-Update-Server verwalten]]></item>
<item name="wcf.acp.group.option.admin.system.canEditOption"><![CDATA[Kann allgemeine Einstellungen vornehmen]]></item>
<item name="wcf.acp.group.option.admin.style.canUseDisabledStyle"><![CDATA[Kann deaktivierte Stile benutzen]]></item>
<item name="wcf.acp.group.option.admin.system.canViewLog"><![CDATA[Kann Protokolle abrufen]]></item>
<item name="wcf.acp.group.option.admin.general.canUseAcp.description"><![CDATA[Users of this group may access the Administration Control Panel based upon their granted permissions. This option must be enabled if you wish to grant access to any administrative option.]]></item>
<item name="wcf.acp.group.option.admin.general.canViewPrivateUserOptions"><![CDATA[Can view private user options]]></item>
<item name="wcf.acp.group.option.admin.language.canManageLanguage"><![CDATA[Can manage languages]]></item>
- <item name="wcf.acp.group.option.admin.language.canManageServer"><![CDATA[Can manage language servers]]></item>
<item name="wcf.acp.group.option.admin.system.canEditOption"><![CDATA[Can edit system options]]></item>
<item name="wcf.acp.group.option.admin.style.canUseDisabledStyle"><![CDATA[Can view disabled styles]]></item>
<item name="wcf.acp.group.option.admin.system.canViewLog"><![CDATA[Can view log files]]></item>