Cannot add user to two different protected channels
There is an error in app.py on line 4479:
if channelQuery is not None: invitedUserQuery = Sec.User.query.filter(func.lower(Sec.User.username) == func.lower(username)).first() if invitedUserQuery is not None: previouslyInvited = False for invite in invitedUserQuery.invites: if invite.channelID is not channelID: previouslyInvited = True
the 'not' should not be there. Now a user can only get an invite to 1 channel and I think that is not the way it's supposed to be. taking away the not makes it possible to add a user to different protected channels :)