Skip to content

Commit

Permalink
Permission logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed Feb 14, 2025
1 parent 05cf8d8 commit f004b5a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/spacecat-shared-data-access/src/util/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ export function ensurePermission(path, aclCtx, perm) {
JSON.stringify(aclCtx),
'perm:',
perm,
'response:',
hasPermisson(path, aclCtx, perm),
);
if (!hasPermisson(path, aclCtx, perm)) {
throw new Error('Permission denied');
Expand Down

0 comments on commit f004b5a

Please sign in to comment.