mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 14:17:46 +00:00
security: fix search username by email
Without this patch, it is possible to search for account info including username by using the email of a learner. This fix disallows searching using email by regular users and restricts this feature to only staff and superusers.
This commit is contained in:
parent
4bfaa80bd3
commit
553000e5f5
@ -4,6 +4,8 @@ Note: Breaking changes between versions are indicated by "💥".
|
||||
|
||||
## Unreleased
|
||||
|
||||
- [Security] Prevent non-staff users from searching usernames by email.
|
||||
|
||||
## v13.0.1
|
||||
|
||||
- [Fix] Missing requirements file in `pip install tutor[full]`.
|
||||
|
@ -12,7 +12,7 @@ from .types import Config, ConfigValue
|
||||
|
||||
TEMPLATES_ROOT = pkg_resources.resource_filename("tutor", "templates")
|
||||
VERSION_FILENAME = "version"
|
||||
BIN_FILE_EXTENSIONS = [".ico", ".jpg", ".png", ".ttf", ".woff", ".woff2"]
|
||||
BIN_FILE_EXTENSIONS = [".ico", ".jpg", ".patch", ".png", ".ttf", ".woff", ".woff2"]
|
||||
|
||||
|
||||
class JinjaEnvironment(jinja2.Environment):
|
||||
|
@ -50,6 +50,9 @@ RUN git fetch --depth=2 https://github.com/regisb/edx-platform 51e0ec3b97ae5badb
|
||||
# Fix forum notification for questions
|
||||
# https://github.com/edx/edx-platform/pull/29611
|
||||
RUN git fetch --depth=2 https://github.com/open-craft/edx-platform/ 03731f19459e558f188c06aac5cc9ca1bbc675c2 && git cherry-pick 03731f19459e558f188c06aac5cc9ca1bbc675c2
|
||||
# Fix email search
|
||||
# https://github.com/overhangio/edx-platform/commit/78da3d86b79e808462b88f219efb90bf8253a5d1
|
||||
RUN git fetch --depth=2 https://github.com/overhangio/edx-platform/ 78da3d86b79e808462b88f219efb90bf8253a5d1 && git cherry-pick 78da3d86b79e808462b88f219efb90bf8253a5d1
|
||||
{% endif %}
|
||||
|
||||
{# Example: RUN git fetch --depth=2 https://github.com/edx/edx-platform <GITSHA1> && git cherry-pick <GITSHA1> #}
|
||||
|
Loading…
Reference in New Issue
Block a user