Preventing deletion of delivered BBCodes, Page Menu Items and User Options
authorAlexander Ebert <ebert@woltlab.com>
Fri, 27 Jun 2014 12:36:39 +0000 (14:36 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 27 Jun 2014 12:36:39 +0000 (14:36 +0200)
commit31378fd1b237100cadc35c72f142acd3fb533543
treef4724b5ee38ef6e20be414087b5398bcb8336ac8
parent52386ca9e306ea9e147c05577a7bd3510b272d0f
Preventing deletion of delivered BBCodes, Page Menu Items and User Options

All three types are either complex objects or have data or implicit properties associated with them which are not alterable through the ACP. For example user-created menu items will be assigned a generic name which cannot be used as a replacement for pre-defined items with a specific name (e.g. highliting the active menu item).

In order to prevent users from accidentially breaking stuff, we disallow deletion. In return all three types support disabling of items, therefore they can be safely turned off which in return results in the same behavior compared to deleting them.
12 files changed:
wcfsetup/install/files/acp/templates/bbcodeList.tpl
wcfsetup/install/files/acp/templates/userOptionList.tpl
wcfsetup/install/files/lib/data/bbcode/BBCode.class.php
wcfsetup/install/files/lib/data/bbcode/BBCodeAction.class.php
wcfsetup/install/files/lib/data/page/menu/item/PageMenuItem.class.php
wcfsetup/install/files/lib/data/page/menu/item/PageMenuItemAction.class.php
wcfsetup/install/files/lib/data/user/option/UserOption.class.php
wcfsetup/install/files/lib/data/user/option/UserOptionAction.class.php
wcfsetup/install/files/lib/system/package/plugin/BBCodePackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserOptionPackageInstallationPlugin.class.php
wcfsetup/setup/db/install.sql