From 34b7054be1135f9c145b131da6f86670fa9d3a0a Mon Sep 17 00:00:00 2001
From: Martin Haase <martin.haase@daasi.de>
Date: Thu, 11 Feb 2010 09:16:19 +0000
Subject: [PATCH] robustness for ePPNs from persistentIDs

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@5379 7c539038-3410-0410-b1ec-0f2a7bf1c452
---
 info.textgrid.middleware.tgauth.rbac/rbac/RBACcore.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/info.textgrid.middleware.tgauth.rbac/rbac/RBACcore.class.php b/info.textgrid.middleware.tgauth.rbac/rbac/RBACcore.class.php
index 0908c4a..d9986dc 100755
--- a/info.textgrid.middleware.tgauth.rbac/rbac/RBACcore.class.php
+++ b/info.textgrid.middleware.tgauth.rbac/rbac/RBACcore.class.php
@@ -582,7 +582,8 @@ class RBACcore implements iRBACcore {
 
       // The given user has to be equal with the sessions
       // user.
-      if( preg_match( "/^" . $inUser . "$/i", $arrSessionEntry['rbacsessionuser'][0] ) ) {
+//      if( preg_match( "/^" . $inUser . "$/i", $arrSessionEntry['rbacsessionuser'][0] ) ) {
+      if( strtolower( $inUser ) == strtolower( $arrSessionEntry['rbacsessionuser'][0] ) ) {
 
         $arrRole = $this->authorizedRoles( $inUser, false );
 
-- 
GitLab