def addEntitlementClassOwner(self, authToken, role, entClass):
        """
        Gives the role management permission for the entitlement class.
        """
        if not self.authCheck(authToken, admin = True):
            raise errors.InsufficientPermission
        self.log(2, "role=%s entClass=%s" % (role, entClass))
        cu = self.db.cursor()
        entClassId, roleId = self._getIds(cu, entClass, role)
        cu.execute("INSERT INTO EntitlementOwners (entGroupId, ownerGroupId) "
                   "VALUES (?, ?)",
                   (entClassId, roleId))
        self.db.commit()
dataset/ETHPy150Open sassoftware/conary/conary/repository/netrepos/netauth.py/NetworkAuthorization.addEntitlementClassOwner/original