-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Adds education role
- Loading branch information
Showing
15 changed files
with
106 additions
and
10 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -668,6 +668,10 @@ def __init__(self, api): | |
default=0, | ||
description="The amount of Kudos this user has given to other users.", | ||
), | ||
"donated": fields.Float( | ||
default=0, | ||
description="The amount of Kudos this user has donated to public goods accounts like education.", | ||
), | ||
"admin": fields.Float( | ||
default=0, | ||
description="The amount of Kudos this user has been given by the Horde admins.", | ||
|
@@ -895,6 +899,10 @@ def __init__(self, api): | |
example=False, | ||
description="This is a service account used by a horde proxy.", | ||
), | ||
"education": fields.Boolean( | ||
example=False, | ||
description="This is an education account used schools and universities.", | ||
), | ||
"special": fields.Boolean( | ||
example=False, | ||
description="(Privileged) This user has been given the Special role.", | ||
|
@@ -986,6 +994,10 @@ def __init__(self, api): | |
example=False, | ||
description="When set to true, the user is considered a service account proxying the requests for other users.", | ||
), | ||
"education": fields.Boolean( | ||
example=False, | ||
description="When set to true, the user is considered an education account and some options become more restrictive.", | ||
), | ||
"special": fields.Boolean( | ||
example=False, | ||
description="When set to true, The user can send special payloads.", | ||
|
@@ -1041,6 +1053,7 @@ def __init__(self, api): | |
"customizer": fields.Boolean(description="The user's new customizer status."), | ||
"vpn": fields.Boolean(description="The user's new vpn status."), | ||
"service": fields.Boolean(description="The user's new service status."), | ||
"education": fields.Boolean(description="The user's new education status."), | ||
"special": fields.Boolean(description="The user's new special status."), | ||
"new_suspicion": fields.Integer(description="The user's new suspiciousness rating."), | ||
"contact": fields.String(example="[email protected]", description="The new contact details."), | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
HORDE_VERSION = "4.31.4" | ||
HORDE_VERSION = "4.32.0" | ||
|
||
WHITELISTED_SERVICE_IPS = { | ||
"212.227.227.178", # Turing Bot | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,4 @@ class UserRoleTypes(enum.Enum): | |
VPN = 5 | ||
SPECIAL = 6 | ||
SERVICE = 7 | ||
EDUCATION = 8 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TYPE userroletypes ADD VALUE 'EDUCATION'; |
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