It isn't necessary to register pdf mime type
Permission checking became more clear