Revert "Merge pull request #421 from aipocom/bugfix/acl_inactive_application"

This reverts commit ce9ecae01ca1042c5691dde204a627be4d396872, reversing
changes made to 988b5a19ee37152380e261458055da68754a3e74.