Resolve "Unprotected subjects query" #133
No reviewers
Labels
No labels
Security
TeX
auto-update
board
done
board
ready
board
todo
check
delete-eslint-rc-js
check
update-builddeps-package-json
check
update-eslint-rc-js
check
update-gitignore
check
update-merge-request-template
check
update-prettier-ignore
check
update-pyproject-toml
check
update-renovate-json
check
update-tox-ini
part
backend
part
ci
part
docs
part
frontend
part
i18n
part
non-technical
part
packaging
prio
1
prio
2
prio
3
release-mr-5.x
size
large
size
medium
size
small
source
customer
source
customer::fsmw
source
customer::fss
source
customer::teckids
source
downstream
type
breaking
type
bug
type
feature
type
refactoring
workflow
blocked
workflow
confirmed
workflow
current-todo
workflow
discussing
workflow
new-app
workflow
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aleksis/AlekSIS-App-Cursus!133
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "38-unprotected-subjects-query"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #38
assigned to @hansegucker
added 1 commit
5756ba3a- Protect subjects query by checking permissionsCompare with previous version
Lint fails because of some incompatible module.
I cite: Authenticated users should be able to fetch all subjects. So, globally check for this rule:
https://edugit.org/AlekSIS/onboarding/AlekSIS-App-Cursus/-/blob/master/aleksis/apps/cursus/rules.py?ref_type=heads#L20
@yuha Will that break any of your fancy substitution tools?
changed this line in version 2 of the diff
added 1 commit
47bbb9ee- Enable all authenticated users to fetch all subjectsCompare with previous version
wait, no, in case you mean the teacher sorting functionality of
SubjectFieldwhich fetches the subjects of teachers which only requires users using the substitution assistant to have sufficient permissions for accessing all relevant teachers. But since that has always been the case, nothing should break.Introduce the following rule:
and use it
changed this line in version 3 of the diff
changed this line in version 3 of the diff
added 1 commit
86581035- Fix and optimize resolve_teachers-method of SubjectTypeCompare with previous version
resolved all threads
mentioned in commit
f0cbe4e13e