Revert "add PermissionsManager"

This reverts commit 562b0bfac28173e5893288bceb5e87df4133bd9a.