mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-29 03:14:38 +00:00
Slightly more helpful 403 response.
This commit is contained in:
parent
0ff0f66b2d
commit
f1519a7f1f
@ -14,11 +14,11 @@ require_once('DAVResource.php');
|
|||||||
|
|
||||||
$dav_resource = new DAVResource($request->path);
|
$dav_resource = new DAVResource($request->path);
|
||||||
if ( ! $dav_resource->HavePrivilegeTo('DAV::write-content') ) {
|
if ( ! $dav_resource->HavePrivilegeTo('DAV::write-content') ) {
|
||||||
$request->DoResponse(403);
|
$request->DoResponse(403,'No write permission');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! $dav_resource->Exists() && ! $dav_resource->HavePrivilegeTo('DAV::bind') ) {
|
if ( ! $dav_resource->Exists() && ! $dav_resource->HavePrivilegeTo('DAV::bind') ) {
|
||||||
$request->DoResponse(403);
|
$request->DoResponse(403,'No bind permission.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
|
if ( ! ini_get('open_basedir') && (isset($c->dbg['ALL']) || (isset($c->dbg['put']) && $c->dbg['put'])) ) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user