Revert "changed way permissions for groups are defined"

This reverts commit b530b0e522fe47dc24a24b44759e3113f89fd7e8.