nodebb-plugin-composer-redactor fileupload not working in nodebb v1.1.0.

NodeBB Plugins

Suggested Topics


  • 0 Votes
    20 Posts
    541 Views

    Hi,

    i have a little Change, that will also leave User when NOT in ldap group:

    groupJoin: (ldapGroup, ldapId, uid, callback) => { winston.verbose("[LDAP] groupJoin " + ldapGroup.cn + " for user " + ldapId + " uid " + uid) nodebb_ldap.createGroup(ldapGroup, (err, groupId) => { if (err) { return callback(err); } let members = ldapGroup.uniqueMember; if (!Array.isArray(members)) { members = [members]; } winston.verbose("[LDAP] groupJoin members " + members && typeof members) let found = false if (members) { members.forEach(member => { if (member && member.indexOf(ldapId) != -1) { found = true } }); } if (found) { const groupsToJoin = [groupId]; if ((master_config.admin_groups || '').split(',').includes(ldapGroup.cn)) { winston.verbose("[LDAP] joins admin group") groupsToJoin.push('administrators'); } if ((master_config.moderator_groups || '').split(',').includes(ldapGroup.cn)) { groupsToJoin.push('Global Moderators'); } return groups.join(groupsToJoin, uid, callback); } else { const groupsToUnJoin = [groupId]; winston.verbose("[LDAP] unjoins group" + ldapGroup.cn + " uid " + uid); return groups.leave(groupsToUnJoin, uid, callback); //callback(); } } ); },

    thats realy cool for use 🙂 maybe someone else will help it 🙂

  • Favorite Plugins?

    NodeBB Plugins
    0 Votes
    9 Posts
    3k Views
  • 2 Votes
    10 Posts
    3k Views

    This is growing and becoming a stylish front end. v0.3.0:

    0_1463174551959_upload-ab531bcf-e815-4d8a-bedb-0265eee2b469

  • 11 Votes
    49 Posts
    22k Views

    Oh, i found my problem. That was an incorrect testing procedure. Did not enable the vpn on the second tab, so system somehow detects it and rejected the ref. Nice. For anybody testing the ref system and has faced the same problem: check the node logs for a string "Error: Hijack attempt blocked", if it is check if you are using the same session (I suppose?) on a second tab.