Actions for entry are shown according to the permission set

flash[:notice] will be displayed if user is denied of permission for the action

it will now check if the uploading problem file is PDF format.