mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-03 09:28:21 +00:00
Disallow moderators/administrators from issuing cases against each other (#781)
* Disallow moderators/administrators from issuing cases against each other * Resolve suggestions from reviewers * Only request user from db if id is valid
This commit is contained in:
parent
572c942ee8
commit
2a85b6a136
4 changed files with 28 additions and 8 deletions
|
@ -9,8 +9,7 @@ public static class ErrorStrings
|
|||
public static readonly TranslatableString EmailInvalid = create("email_invalid");
|
||||
public static readonly TranslatableString EmailTaken = create("email_taken");
|
||||
public static readonly TranslatableString CaptchaFailed = create("captcha_failed");
|
||||
public static readonly TranslatableString TokenInvalid = create("token_invalid");
|
||||
public static readonly TranslatableString UserIsBanned = create("user_banned");
|
||||
public static readonly TranslatableString ActionNoPermission = create("action_no_permission");
|
||||
|
||||
private static TranslatableString create(string key) => new(TranslationAreas.Error, key);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue