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

resolved TG-1873

git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13508 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 1f772739
No related branches found
No related tags found
No related merge requests found
...@@ -410,11 +410,17 @@ class TgExtraCrud { ...@@ -410,11 +410,17 @@ class TgExtraCrud {
// ----------------------------------------------------- // -----------------------------------------------------
// Function: tgCrudCheckAccess // Function: tgCrudCheckAccess
// Input: log / xsd:string // Input: auth / xsd:string
// session / xsd:string // log / xsd:string
// operation / xsd:string // operation / xsd:string
// resource / xsd:string // resource / xsd:string
// Output: sid / xsd:string // secret / xsd:string
// Output:
// result / xsd:boolean
// public / xsd:boolean
// project / tns:projectinfo
// username / xsd:string
// operation / xsd:string
// Description // Description
// Searches for the given resource. If it's existing the // Searches for the given resource. If it's existing the
// method starts the checkAccess query and returns the // method starts the checkAccess query and returns the
...@@ -499,7 +505,12 @@ class TgExtraCrud { ...@@ -499,7 +505,12 @@ class TgExtraCrud {
// Finally add the username and allowed // Finally add the username and allowed
// operations for the current session. // operations for the current session.
$result->username = $this->rbac->sessionUser( $inRequest->auth ); // have to check for anonymous access (or invalid SID)
try {
$result->username = $this->rbac->sessionUser( $inRequest->auth );
} catch ( Exception $e ) {
$result->username = "--invalid--";
}
try { try {
......
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