I have the function:
contract TaskContract {
function deleteTask(uint256 taskId, bool isDeleted) external {
if (taskToOwner[taskId] == msg.sender) {
tasks[taskId].isDeleted = isDeleted;
emit DeleteTask(taskId, isDeleted);
}
}
My question:
Is it possible to add a contract owner here so that he can also delete tasks along with mapped users.