Skip to content
Snippets Groups Projects
Commit b49b68e6 authored by Martin Haase's avatar Martin Haase
Browse files

publish() now deletes all permissions from the resource such that they cannot...

publish() now deletes all permissions from the resource such that they cannot be modified anymore and only 'read' will be returned by getRights() based on the isPublic flag.

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@2269 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 65dd8469
No related branches found
No related tags found
No related merge requests found
......@@ -791,6 +791,7 @@ class TgExtra {
if( $this->rbac->checkAccess( $inRequest->auth, "publish", $inRequest->resource ) ) {
$arrModify['tgispublic'][] = "TRUE";
$arrModify['rbacpermission'] = Array();
$result->result = $this->connection['resource']->modify( $arrResource[0]['dn'], $arrModify );
}
......
......@@ -14,7 +14,7 @@ require_once( "../soapTypes.inc.php" );
// -----------------------------------------------------
// You'll need these services
// -----------------------------------------------------
$soapSystem = new SoapClient( "http://rbac.textgrid.daasi.de/wsdl/tgextra.wsdl" );
$soapSystem = new SoapClient( "../wsdl/tgextra.wsdl" );
echo "<BODY><HTML>";
......
......@@ -14,7 +14,7 @@ require_once( "../soapTypes.inc.php" );
// -----------------------------------------------------
// You'll need these services
// -----------------------------------------------------
$soapExtra = new SoapClient( "http://rbac.textgrid.daasi.de/wsdl/tgextra.wsdl" );
$soapExtra = new SoapClient( "../wsdl/tgextra.wsdl" );
echo "<BODY><HTML>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment