Skip to content

Commit

Permalink
chore: prevent read undefined property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ederson committed Sep 27, 2024
1 parent 92eca37 commit 6db4183
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class WorkspacesResourcesItemsInBehalfGuard implements CanActivate {

const actionHandler = this.getActionHandler(action);

const bypassActionCheck = request.query.isSharedItem;
const bypassActionCheck = request.query?.isSharedItem || false;

const canUserPerformAction = bypassActionCheck
? true
Expand Down

0 comments on commit 6db4183

Please sign in to comment.