migrate to using permissions for controlling listings
make current discussion group active
refactoring permission checks
refactoring and fixing some logic for new permissions