fixes #4788 limited user deleting Structure without permissions

Fixed and tested the issue and committed code for review, please check it.