Our solution was to divorce "accounts" and the "User" cardtype:
- user must have this global permission: "add accounts to cards"
- user must have edit permissions for the card in question
- card can't already have an extension
Short-term, inconvenient hack:
Create a form for Users and copy it to InvitationRequest+*tform. To add someone new, log out, click on Request an Invitation and type in their name and e-mail address. Then log back in and edit their card and its relative inclusions as you like. Invite them if/whenever you like by clicking on the Invite link on their card.
While this works, it's enough of a pain to dissuade me sometimes from creating people in my personal wiki. :-P --John
What if the existing card has view(or create or edit) permissions that a current inviter doesn't have?
--John Abbe.....Tue Sep 02 18:01:44 -0700 2008
hmm, just found issue trying to create a user through the new card interface. will address.
--Ethan McCutchen.....Tue Jan 13 10:21:31 -0800 2009
coded a patch.
--Ethan McCutchen.....Tue Jan 13 11:39:38 -0800 2009
Added an account to http://sandbox.wagn.org/wagn/Just_a_card and it worked! Three issues:
"Three issues." OK, you're so not on the accounting team. :)
--John Abbe.....Tue Jan 20 23:32:38 -0800 2009
If there's ever an issue we should test to death, thinking through all sorts of ramifications, this is the one. Let's throw everything we've got at it!!
--Ethan McCutchen.....Mon Jan 26 15:31:59 -0800 2009
Roles and cardtypes don't offer to be turned into account, but at least this format card does: http://sandbox.wagn.org/wagn/session+*tform
--John Abbe.....Tue Feb 10 17:08:21 -0800 2009
Roles and cardtypes already have extensions, so they can't have accounts with our current architecture, which is legacy from some early ideas we had about wagn as a data integration tool that could plug into other tables. Lew and I want to fix that, and I should ticket it (it's in my personal tracker - no need to hold this up for that).
are you suggesting that we want to disallow accounts on certain cards like form cards? anywhere else? Do you think allowing it is a problem?
--Ethan McCutchen.....Wed Feb 11 11:25:50 -0800 2009
Have you tested bogus passwords, bogus emails, names with apostrophes, that sort of thing? Let's do everything we can to break this thing. Emails with capital letters break things, right? Have we found other things?
--Ethan McCutchen.....Wed Feb 11 16:45:19 -0800 2009
gathering default settings stuff: implement initial setup for new Wagn
--John Abbe.....Tue Feb 17 14:38:43 -0800 2009
I thought forms were supposed to be disallowed because of this from +solution:
"any card that does not have another extension (like a role, cardtype, or format card) can have an account added to it (via the options tab)"
--John Abbe.....Tue Feb 17 14:40:26 -0800 2009
Tested bogus emails (Wagn rejects), email with capital letters (not a problem), names with apostrophes (handled the same as any other card name with apostrophes). Not sure what a bogus password would be.
Changing cardtype to cardtype returns a 500 error and nothing is changed. Changing cardtype to Role works, and the card apparently loses the user extension.
Two odd bits:
Email comes from Admin rather than from the signed-in user. (when there's no *invite+*from)
After adding the user extension, when returned to the Options tab, the Email field is blank (could have the just-given email address).
--John Abbe.....Tue Feb 17 22:19:51 -0800 2009
so emails with capital letters work so long as you always use the same capitalization but not if you sign up as ETHAN@WAGN.ORG and then sign in as ethan@wagn.org, right? I guess that's ok for now. I'd like it to treat those as the same; I've got a note to ticket that.
--Ethan McCutchen.....Wed Feb 18 20:41:03 -0800 2009
option to add account on format card should be gone.
--Ethan McCutchen.....Wed Feb 18 20:42:20 -0800 2009
not going to worry about changing to user to cardtype now.
--Ethan McCutchen.....Wed Feb 18 20:42:50 -0800 2009
--John Abbe.....Wed Feb 18 20:49:07 -0800 2009
--Ethan McCutchen.....Wed Feb 18 21:16:03 -0800 2009
--John Abbe.....Wed Feb 18 21:41:03 -0800 2009
--Ethan McCutchen.....Wed Feb 25 17:24:58 -0800 2009
--Lewis Hoffman.....Fri Feb 27 13:18:51 -0800 2009
--John Abbe.....Sun Mar 01 06:30:49 -0800 2009