diff options
author | James Lal <james@lightsofapollo.com> | 2013-04-26 08:54:43 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2013-05-02 14:01:06 -0700 |
commit | 8857b80ae0dd7be54d0d731000c9f8edb0434336 (patch) | |
tree | 5e7e4ee8dcc3cb01d48b4b88ab14039bc50cf034 /lib/caldav/request/calendar_home.js | |
parent | 9b6e2c616154f2c20fe6272dca083868c02f98f4 (diff) | |
download | jsCalDAV-8857b80ae0dd7be54d0d731000c9f8edb0434336.tar.gz |
Bug 867747 - OAuth2 authentication support (particularly for google) r=kgrandon,gaye
Diffstat (limited to 'lib/caldav/request/calendar_home.js')
-rw-r--r-- | lib/caldav/request/calendar_home.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/caldav/request/calendar_home.js b/lib/caldav/request/calendar_home.js index a1f8ca6..d0659bb 100644 --- a/lib/caldav/request/calendar_home.js +++ b/lib/caldav/request/calendar_home.js @@ -77,10 +77,10 @@ if (!principal) { principal = findProperty('principal-URL', data, true); } - + if ('unauthenticated' in principal) { - callback(new Errors.UnauthenticatedError()); - } else if (principal.href){ + callback(new Errors.UnauthenticatedError()); + } else if (principal.href) { callback(null, principal.href); } else { callback(new Errors.CaldavHttpError(404)); |