'Checks if User can create an event'

def can_create_event(self):

    perm = UserPermission.query.filter_by(name='create_event').first()
    if (not perm):
        return self.is_verified
    if (self.is_verified is False):
        return perm.unverified_user
    return True
