WIP team invitations

This commit is contained in:
ansuz
2019-12-16 20:57:19 -05:00
parent 1a521b57c8
commit c82c50c274
3 changed files with 151 additions and 82 deletions

View File

@@ -437,7 +437,7 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto) {
// so you must already be in the members list
if (!isMap(members[author])) { throw new Error("INSUFFICIENT_PERMISSIONS"); }
// and your membership must indicate that you are 'pending'
if (!members[author].pending) { throw new Errror("ALREADY_PRESENT"); }
if (!members[author].pending) { throw new Error("ALREADY_PRESENT"); }
// args should be a string
if (typeof(args) !== 'string') { throw new Error("INVALID_ARGS"); }