'True if the user has write permissions on the given module'

def is_admin(self, module_name=''):

    access = False
    if (not module_name):
        module_name = 'treeio.core'
    try:
        module = Module.objects.get(name=module_name)
        access = self._check_permission(module, mode='w')
    except Module.DoesNotExist:
        pass
    if (access or (module_name == 'treeio.core')):
        return access
    return self.is_admin(module_name='treeio.core')
