Skip to content
Snippets Groups Projects
Commit c56fba7b authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

- re-formatted WSDL files

- fixed bug TG-1929 in TgExtraCrud.class.php
- TODO Fix same bug in TgExtra.class.php, if needed...


git-svn-id: https://textgridlab.org/svn/textgrid/trunk/middleware/tgauth@13851 7c539038-3410-0410-b1ec-0f2a7bf1c452
parent 14530201
No related branches found
No related tags found
No related merge requests found
......@@ -432,6 +432,7 @@ class TgExtraCrud {
// Must check in the following order:
// 1. Check if the tgcrud secret is correctly set, if not > authenticationFault
// 2. Check if the resource is existing, if not > unknownResourceFault
// 2.5 Check for isPublic flag, if set to TRUE let the user READ the ressource.
// 3. Check the session ID, if not valid > set result to false and return
// 4. Set the other results and return true
......@@ -479,6 +480,18 @@ class TgExtraCrud {
}
// ------------------------------------------------------------------------
// Check here, if we have got a public ressource and operation is READ!
// If so, set result to TRUE. May be fixed above or better! (Ask Mr Haase!)
// ------------------------------------------------------------------------
// fu 2013-03-21 -- solves TG-1929
// ------------------------------------------------------------------------
if( $inRequest->operation == "read" && $result->public == true ) {
$result->result = true;
}
// ------------------------------------------------------------------------
// If the resource isn't a project the project corresponding to the
// has to be searched now.
if( $arrProject == None && isset( $arrResource['tgprojectid'] ) ) {
......
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