Skip to content

Commit

Permalink
[FIX] vault: Check against the key of vault.right
Browse files Browse the repository at this point in the history
  • Loading branch information
fkantelberg committed Feb 17, 2024
1 parent 38aa148 commit 6259a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vault/static/src/backend/controller.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ patch(FormController.prototype, "vault", {
* @param {Object} right
*/
async _vaultEnsureRightKey(root, right) {
if (!root.data.master_key || right.data.master_key) return;
if (!root.data.master_key || right.data.key) return;

const params = {user_id: right.data.user_id[0]};
const user = await this.rpc("/vault/public", params);
Expand Down

0 comments on commit 6259a60

Please sign in to comment.