Return 403 Forbidden rather than 401 Unauthorized on restricted project
author Chris Han
()
committer Chris Han
()
commit 3253a6f3601cab0d1d32a881529099358c5b577b
tree 614081b214b989e0d7dbc005fd368f2e978ea01f
parent b7235bc9bc55ad988ce8431345af38cfb28ae661
Return 403 Forbidden rather than 401 Unauthorized on restricted project

401 Unauthorized requires a WWW-Authenticate header according to the
spec, which is not something that gitphp supports (Basic
authentication). 403 Forbidden technically means that authentication
won't help, but in this case they're talking about basic http
authentication, not app-level authentication.

Also I forgot to map the 401 code to a status header, so that wasn't
even working anyway.
include/controller/Controller_Message.class.php
include/exception/UnauthorizedProjectException.class.php
comments