Skip to content

Commit

Permalink
Improved user property in the Action declartion.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Sep 26, 2024
1 parent 29e517e commit 6c2cae0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions builders.js
Original file line number Diff line number Diff line change
Expand Up @@ -1328,9 +1328,11 @@ ActionCaller.prototype.exec = function() {
}
};

if (action.user && !$.user) {
$.invalid(401);
return;
if (action.user != null) {
if ((action.user && !user) || (!action.user && user)) {
$.invalid(401);
return;
}
}

if (action.sa) {
Expand Down

0 comments on commit 6c2cae0

Please sign in to comment.