Change formatting and removed unneeded permissions.
Remove BASE_PERMISSION.
Switch empty inventory check and permission check order.

Also includes a fix to a message.