Not a bug Resource manager - hard delete without permissions [solved]


1.) Sorry for my bad english ;-)

Our Moderators have the permissions to soft delete in our database but not for hard delete.
But if they soft delete a file and delete this file again, than can they hard delete.
I changed the template "helper_deletion_type_unit"
<xen:if is="{$visitor.permissions.resource.hardDeleteAny}">
                <li><label for="ctrl_hard_delete">
                    <input type="radio" name="hard_delete" id="ctrl_hard_delete" value="1" /> {xen:phrase permanently_delete}</label>
                    <p class="hint">{xen:phrase selecting_this_option_will_permanently_and_irreversibly_delete_item}</p></li>

It doesn´t work with the TMS



XenForo developer
Staff member
I assume you aren't having this issue now based on the thread title, though unfortunately I couldn't really recommend that approach as this is a generic template and it should only show based on permissions already. You shouldn't have to modify anything. If the hard delete option is showing, you should check your permission setup.