Revert "build PermissionsManager"

This reverts commit 2fdd84e021f75e382eaaa3bd33dfed74a4561d5a.