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

forgot this

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@9818 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 6037aea0
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ class Project extends RBACExtension { ...@@ -66,7 +66,7 @@ class Project extends RBACExtension {
// If the roleName contains a DN that is directly under // If the roleName contains a DN that is directly under
// the project-base-DN, then add the project-specific // the project-base-DN, then add the project-specific
// permissions and operations // permissions and operations
if( preg_match( "/^rbacName=TGPR[0-9]+\s*,\s*" . $this->conf->getValue( "project", "base" ) . "/i", $roleDn ) ) { if( preg_match( "/^rbacName=TGPR-[^,]+\s*,\s*" . $this->conf->getValue( "project", "base" ) . "/i", $roleDn ) ) {
$arrEntry = $inContext->getValue( "entry" ); $arrEntry = $inContext->getValue( "entry" );
...@@ -98,17 +98,7 @@ class Project extends RBACExtension { ...@@ -98,17 +98,7 @@ class Project extends RBACExtension {
$projectEntry = $inContext->getValue( "entry" ); // The entry itself $projectEntry = $inContext->getValue( "entry" ); // The entry itself
$file = fopen( "LOG/createMissingProjectRoleTree.debug", "a+" ); if( preg_match( "/^\s*rbacName=TGPR-[^,]+\s*,\s*" . $this->conf->getValue( "project", "base" ) . "/i", $projectDn ) ) {
fwrite( $file, "\n/^\s*rbacName=TGPR[0-9]+\s*,\s*" . $this->conf->getValue( "project", "base" ) . "/i" . " ::: " . $projectDn . "\n" );
fclose( $file );
if( preg_match( "/^\s*rbacName=TGPR[0-9]+\s*,\s*" . $this->conf->getValue( "project", "base" ) . "/i", $projectDn ) ) {
$file = fopen( "LOG/createMissingProjectRoleTree.debug", "a+" );
fwrite( $file, "It is indeed a project!\n" );
fclose( $file );
// Create the other roles // Create the other roles
$this->rbac->addAscendant( $this->conf->getValue( "project", "observerRoleName" ), $projectDn ); $this->rbac->addAscendant( $this->conf->getValue( "project", "observerRoleName" ), $projectDn );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment