Skip to content
Snippets Groups Projects
Commit ea00e2cc authored by Armand Bahi's avatar Armand Bahi
Browse files

Interdire l'accès à vitis/webservices aux non vitis admin

parent 812f2450
Branches
Tags
No related merge requests found
......@@ -190,6 +190,14 @@ class WebServices extends Vitis {
* @return Columns
*/
function GET() {
// Privilège "vitis_admin" requis.
if (!in_array('vitis_admin', $this->oConnection->aPrivileges)) {
$oError = new VitisError(1, "Rights problem : you don't have rights to list webservices");
$aXmlRacineAttribute['status'] = 0;
$sMessage = $oError->asDocument('', 'vitis', $this->aValues['sEncoding'], True, $aXmlRacineAttribute, $this->aValues['sSourceEncoding'], $this->aValues['output']);
return $sMessage;
}
if ($this->oConnection->oError == null) {
require("../doc/vendor/autoload.php");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment