DirProtections and DirOptions stuff

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-03-15 19:35:56 +01:00
parent 858a9ba6a4
commit 7a68dfc450
4 changed files with 396 additions and 150 deletions

View File

@@ -271,7 +271,7 @@ class DirProtections extends ApiCommand implements ResourceEntity
* delete a directory-protection by either id or username
*
* @param int $id
* optional, the ftp-user-id
* optional, the directory-protection-id
* @param string $username
* optional, the username
*
@@ -293,7 +293,7 @@ class DirProtections extends ApiCommand implements ResourceEntity
throw new Exception("You cannot access this resource", 405);
}
// get ftp-user
// get directory protection
$result = $this->apiCall('DirProtections.get', array(
'id' => $id,
'username' => $username