(fix) return login page for unknown users (fixes #2135)
parent
651c0fdf14
commit
ea940e645e
|
@ -27,6 +27,7 @@
|
||||||
#import <GDLContentStore/GCSAlarmsFolder.h>
|
#import <GDLContentStore/GCSAlarmsFolder.h>
|
||||||
#import <GDLContentStore/GCSSessionsFolder.h>
|
#import <GDLContentStore/GCSSessionsFolder.h>
|
||||||
|
|
||||||
|
#import <NGObjWeb/NSException+HTTP.h>
|
||||||
#import <NGObjWeb/SoClassSecurityInfo.h>
|
#import <NGObjWeb/SoClassSecurityInfo.h>
|
||||||
#import <NGObjWeb/WOContext.h>
|
#import <NGObjWeb/WOContext.h>
|
||||||
#import <NGObjWeb/WORequest+So.h>
|
#import <NGObjWeb/WORequest+So.h>
|
||||||
|
@ -418,8 +419,12 @@ static BOOL debugLeaks;
|
||||||
"GET" if no method was provided in the query path.
|
"GET" if no method was provided in the query path.
|
||||||
*/
|
*/
|
||||||
if ([_key length] > 0 && ![_key isEqualToString:@"favicon.ico"])
|
if ([_key length] > 0 && ![_key isEqualToString:@"favicon.ico"])
|
||||||
obj = [self lookupUser: _key inContext: _ctx];
|
{
|
||||||
}
|
obj = [self lookupUser: _key inContext: _ctx];
|
||||||
|
if (!obj)
|
||||||
|
obj = [self lookupUser: @"anonymous" inContext: _ctx];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
obj = nil;
|
obj = nil;
|
||||||
|
|
Loading…
Reference in New Issue