Skip to content

Commit

Permalink
Merge pull request #8 from DIG-Network/release/v0.0.1-alpha.10
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.10
  • Loading branch information
MichaelTaylor3D authored Sep 17, 2024
2 parents 91ac089 + d89160d commit c13a498
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.10](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.9...v0.0.1-alpha.10) (2024-09-17)


### Bug Fixes

* ownership in propagation ([d00f374](https://github.com/DIG-Network/dig-propagation-server/commit/d00f374774a891f8264cbffcbe02149c6c7424ea))

### [0.0.1-alpha.9](https://github.com/DIG-Network/dig-propagation-server/compare/v0.0.1-alpha.8...v0.0.1-alpha.9) (2024-09-17)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dig-propagation-server",
"version": "0.0.1-alpha.9",
"version": "0.0.1-alpha.10",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const serverOptions = {
cert: serverCert,
ca: caCert,
requestCert: true, // Require client certificate
rejectUnauthorized: true, // Reject unauthorized clients
rejectUnauthorized: false, // Reject unauthorized clients
};

// Create the HTTPS server
Expand Down
16 changes: 8 additions & 8 deletions src/controllers/merkleTreeController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ export const putStore = async (req: Request, res: Response): Promise<void> => {
console.log("Checking store ownership...");
const dataStore = DataStore.from(storeId);

const isOwner = await dataStore.hasMetaWritePermissions(
Buffer.from(publicKey, "hex")
);

if (!isOwner) {
console.log("User does not have write access to this store.");
throw new HttpError(403, "You do not have write access to this store.");
}
//const isOwner = await dataStore.hasMetaWritePermissions(
// Buffer.from(publicKey, "hex")
//);

// if (!isOwner) {
// console.log("User does not have write access to this store.");
// throw new HttpError(403, "You do not have write access to this store.");
//}

console.log("User has write access to the store.");

Expand Down

0 comments on commit c13a498

Please sign in to comment.