Revert "Search for permissions"

This reverts commit 38ae94f3322848b767fff898528d836cd4cf5337.