Revert "check the right permission name"

This reverts commit 85e32130c9d9fa074d891b08834b53bd92774483.