Add contacts in the new menu if the user is logged in

This commit is contained in:
yflory
2017-09-05 11:43:16 +02:00
parent 78b338c379
commit 4108520d20

View File

@@ -699,7 +699,7 @@ define([
var pads_options = [];
Config.availablePadTypes.forEach(function (p) {
if (p === 'drive') { return; }
if (!Cryptpad.isLoggedIn() && Config.registeredOnlyTypes &&
if (!Common.isLoggedIn() && Config.registeredOnlyTypes &&
Config.registeredOnlyTypes.indexOf(p) !== -1) { return; }
pads_options.push({
tag: 'a',