Skip to content
Merged
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 @@ -245,7 +245,7 @@ public static Object call(final String path, final Context context, final Mode m
"No matching function found for path [" + path + "]. Ensure the path is correct and the function is public.", 404);
}

if (action.getMode().ordinal() < mode.ordinal()) {
if (action.getMode() != Mode.DEFAULT && action.getMode() != mode) {
throw new ApplicationException("The action is not allowed to be executed.", 400);
}

Expand Down