'ORG / Organization Registry'

@staticmethod
def org():

    settings = current.deployment_settings
    ADMIN = current.session.s3.system_roles.ADMIN
    SECTORS = ('Clusters' if settings.get_ui_label_cluster() else 'Sectors')
    stats = (lambda i: settings.has_module('stats'))
    return M(c='org')(M('Organizations', f='organisation')(M('Create', m='create'), M('Import', m='import')), M('Offices', f='office')(M('Create', m='create'), M('Map', m='map'), M('Import', m='import')), M('Facilities', f='facility')(M('Create', m='create'), M('Import', m='import')), M('Resources', f='resource', m='summary', check=stats)(M('Create', m='create'), M('Import', m='import')), M('Organization    Types', f='organisation_type', restrict=[ADMIN])(M('Create', m='create')), M('Office    Types', f='office_type', restrict=[ADMIN])(M('Create', m='create')), M('Facility    Types', f='facility_type', restrict=[ADMIN])(M('Create', m='create')), M(SECTORS, f='sector', restrict=[ADMIN])(M('Create', m='create')))
