Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
59958823
Commit
59958823
authored
Jun 10, 2015
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- REST:
Fixed issues when working with user "Unregistered Visitor" with user_id=0
parent
d98fbf67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
intranet-rest-procs.tcl
tcl/intranet-rest-procs.tcl
+1
-3
No files found.
tcl/intranet-rest-procs.tcl
View file @
59958823
...
...
@@ -197,9 +197,7 @@ ad_proc -private im_rest_authenticate {
}
}
if
{
""
==
$auth
_user_id
}
{
set auth_user_id 0
}
ns_log Notice
"im_rest_authenticate: format=
$format
, auth_method=
$auth
_method, auth_user_id=
$auth
_user_id"
return
[
list
user_id
$auth
_user_id method
$auth
_method
]
}
...
...
@@ -242,7 +240,7 @@ ad_proc -private im_rest_call_get {
if
{
0 ==
[
llength
[
array
get auth_hash
]]}
{
return
[
im_rest_error -format
$format
-http_status 401 -message
"Not authenticated"
]
}
set auth_user_id
$auth
_hash
(
user_id
)
set auth_method
$auth
_hash
(
method
)
if
{
0
==
$auth
_user_id
}
{
return
[
im_rest_error -format
$format
-http_status 401 -message
"Not authenticated"
]
}
if
{
""
==
$auth
_user_id
}
{
return
[
im_rest_error -format
$format
-http_status 401 -message
"Not authenticated"
]
}
# Default format are:
# -
"html"
for cookie authentication
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment