-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow selecting usernames in Add Members dialog (#655)
* Allow selecting usernames in Add Members dialog This changes the "Add Member" dialog on the project page to ask for a "Login" instead of an "Email". We also change the `userEmail` input on the GraphQL mutation to be called `usernameOrEmail`, to ensure that any code that tries to submit a `userEmail` will get a GraphQL syntax error. * Add ProjectMembersMustBeVerifiedForRole exception * Differentiate between the two MustBeVerified errors User.HasVerifiedEmailForRole is now AssertHasVerifiedEmailForRole, and will throw the appropriate exception. --------- Co-authored-by: Tim Haasdyk <tim_haasdyk@sil.org> Co-authored-by: Tim Haasdyk <myieye@gmail.com>
- Loading branch information
1 parent
4c657cd
commit d468b58
Showing
11 changed files
with
86 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
backend/LexCore/Exceptions/ProjectMembersMustBeVerifiedForRole.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using LexCore.Entities; | ||
|
||
namespace LexCore.Exceptions; | ||
|
||
public class ProjectMembersMustBeVerifiedForRole : Exception | ||
{ | ||
public ProjectMembersMustBeVerifiedForRole(string message, ProjectRole role) : base(message) | ||
{ | ||
Data["role"] = role; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters