Skip to content

Commit 0dbdd58

Browse files
committed
Fix entities-with-no-authz/entities-exposed-with-js-authz-cds-serve
1 parent 3f7063b commit 0dbdd58

File tree

1 file changed

+2
-2
lines changed
  • javascript/frameworks/cap/test/queries/bad-authn-authz/entities-with-no-authz/entities-exposed-with-js-authz-cds-serve

1 file changed

+2
-2
lines changed

javascript/frameworks/cap/test/queries/bad-authn-authz/entities-with-no-authz/entities-exposed-with-js-authz-cds-serve/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const app = require("express")();
33

44
cds.serve("all").in(app);
55

6-
cds.serve("service-1").with(function () {
6+
cds.serve("Service1").with(function () {
77
/*
88
* Protect the whole service using `before`.
99
* Translation of @(requires: [ "authenticated-user" ]).
@@ -42,7 +42,7 @@ cds.serve("service-1").with(function () {
4242
this.before("fun1", (req) => req.user.is("Role4") || req.reject(403));
4343
});
4444

45-
cds.serve("service-2").with((srv) => {
45+
cds.serve("Service2").with((srv) => {
4646
/*
4747
* Protect the whole service using `on`.
4848
* Translation of @(requires: [ "authenticated-user" ]).

0 commit comments

Comments
 (0)