[BISERVER-9473] Check valid permission before deletion
Merge pull request #773 from bytekast/BISERVER-9473

[BISERVER-9473] Check valid permission before deletion