Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export class UmbCurrentUserGroupCondition
}

#observeCurrentUser = async (currentUser: UmbCurrentUserModel) => {
// If currentUser is not yet available, return early to avoid errors
if (!currentUser) {
this.permitted = false;
return;
}

// Idea: This part could be refactored to become a shared util, to align these matching feature across conditions. [NL]
// Notice doing so it would be interesting to invistigate if it makes sense to combine some of these properties, to enable more specific matching. (But maybe it is only relevant for the combination of match + oneOf) [NL]
const { match, oneOf, allOf, noneOf } = this.config;
Expand Down
Loading