Skip to content

Commit

Permalink
pass permCodes in createBucketChild controller
Browse files Browse the repository at this point in the history
  • Loading branch information
TimCsaky committed Jun 21, 2024
1 parent d6d71fd commit 58f205e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/controllers/bucket.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ const controller = {
await controller._validateCredentials(childBucket);
childBucket.userId = await userService.getCurrentUserId(getCurrentIdentity(req.currentUser, SYSTEM_USER));

// assign all permissions
childBucket.permCodes = Object.values(Permissions);

// Create child bucket
const response = await bucketService.create(childBucket);
res.status(201).json(redactSecrets(response, secretFields));
Expand Down

0 comments on commit 58f205e

Please sign in to comment.