nest permissions in module
Merge pull request #17 from opf/fix/module_permissions

nest permissions in module