'Checks if User can publish an event'

def can_publish_event(self):

    perm = UserPermission.query.filter_by(name='publish_event').first()
    if (not perm):
        return self.is_verified
    return perm.unverified_user
