Skip to content

Commit c5d1080

Browse files
committed
renamed default_forbidden to forbidden_view
1 parent d387562 commit c5d1080

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Cpp/odin-views/permission.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace {
2020
const fostlib::jcursor userloc{"headers", "__user"};
2121

2222

23-
std::pair<boost::shared_ptr<fostlib::mime>, int> default_forbidden(
23+
std::pair<boost::shared_ptr<fostlib::mime>, int> forbidden_view(
2424
const fostlib::string &path,
2525
fostlib::http::server::request &req,
2626
const fostlib::host &host) {
@@ -85,7 +85,7 @@ namespace {
8585
return fostlib::urlhandler::view::execute(
8686
config["forbidden"], path, req, host);
8787
} else {
88-
return default_forbidden(path, req, host);
88+
return forbidden_view(path, req, host);
8989
}
9090
}
9191
}
@@ -129,7 +129,7 @@ namespace {
129129
return fostlib::urlhandler::view::execute(
130130
config["otherwise"], path, req, host);
131131
} else {
132-
return default_forbidden(path, req, host);
132+
return forbidden_view(path, req, host);
133133
}
134134
}
135135
}

0 commit comments

Comments
 (0)