def METHOD_NAME(self, typ, sub_type):
    if (typ == 'content' and sub_type in ['create', 'create upload', 'update', 'update upload', 'upgrade', 'delete'] or typ == 'library' and sub_type in ['create', 'update']):
        return True
    return False