We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e79cf7b + 8abf980 commit f6cdc66Copy full SHA for f6cdc66
1 file changed
CanvasKit/Networking/CKIClient+CKIUser.m
@@ -40,6 +40,10 @@ - (RACSignal *)fetchStudentsForContext:(id<CKIContext>)context {
40
41
- (RACSignal *)fetchCurrentUser
42
{
43
+ if (self.accessToken == nil) {
44
+ return [RACSignal empty];
45
+ }
46
+
47
NSString *path = [CKIRootContext.path stringByAppendingPathComponent:@"users/self/profile"];
48
return [self fetchResponseAtPath:path parameters:nil modelClass:[CKIUser class] context:nil];
49
}
0 commit comments