DragonByte Tech
Well-known member
- Affected version
- 2.0.0 RC3
In
However, I'm not seeing this check during
If this is intended, then pretend like this thread was titled "canEdit should be named canDelete" or something instead
Fillip
actionDelete
there's a check:
PHP:
if (!$modification->canEdit())
{
return $this->error(\XF::phrase('item_cannot_be_deleted_associated_with_addon_explain'));
}
However, I'm not seeing this check during
actionSave
or modificationSaveProcess
as I would expect. I haven't tested this theory, but in theory that would allow someone to edit a modification's template modification even if debug mode is not enabled.If this is intended, then pretend like this thread was titled "canEdit should be named canDelete" or something instead
Fillip