<script data-relocate="true">
//<![CDATA[
$(function() {
- new WCF.ACL.List($('#groupPermissions'), {@$objectTypeID}{if $groupID|isset}, '', {@$groupID}{/if});
new WCF.Label.ACPList.Connect();
WCF.TabMenu.init();
//]]>
</script>
+{if !$groupID|isset}
+ {include file='aclPermissionJavaScript' containerID='groupPermissions'}
+{else}
+ {include file='aclPermissionJavaScript' containerID='groupPermissions' objectID=$groupID}
+{/if}
+
<header class="boxHeadline">
<h1>{lang}wcf.acp.label.group.{$action}{/lang}</h1>
</header>
'groupName' => $this->groupName
)));
$returnValues = $this->objectAction->executeAction();
-
+
// save acl
ACLHandler::getInstance()->save($returnValues['returnValues']->groupID, $this->objectTypeID);
+ ACLHandler::getInstance()->disableAssignVariables();
// save object type relations
$this->saveObjectTypeRelations($returnValues['returnValues']->groupID);
-
+
foreach ($this->labelObjectTypes as $objectTypeID => $labelObjectType) {
$labelObjectType->save();
}
public function assignVariables() {
parent::assignVariables();
+ ACLHandler::getInstance()->assignVariables($this->objectTypeID);
+
WCF::getTPL()->assign(array(
'action' => 'add',
'forceSelection' => $this->forceSelection,
// update acl
ACLHandler::getInstance()->save($this->groupID, $this->objectTypeID);
+ ACLHandler::getInstance()->disableAssignVariables();
// update object type relations
$this->saveObjectTypeRelations($this->groupID);