Avoid checking all the time for the current module to be enabled
Revert "Avoiding costly SQL queries"

This reverts commit 8ed970551258ffc94895e15cd519e16ff6303449.
Merge branch 'master' of git.defora.org:DaPortal