(self, name: str, project: str, commit: bool = True)
| 1714 | ) |
| 1715 | |
| 1716 | def delete_permission(self, name: str, project: str, commit: bool = True): |
| 1717 | with self.write_engine.begin() as conn: |
| 1718 | stmt = delete(permissions).where( |
| 1719 | permissions.c.permission_name == name, |
| 1720 | permissions.c.project_id == project, |
| 1721 | ) |
| 1722 | rows = conn.execute(stmt) |
| 1723 | if rows.rowcount < 1: |
| 1724 | raise PermissionNotFoundException(name, project) |
| 1725 | |
| 1726 | def _list_projects( |
| 1727 | self, |
no test coverage detected