Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Department Portal doesn't actually check if you are in a department

オープン
#675 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start at the department portal entry point and compare its access check with the explicit check on the position management page. Reproduce the Peewee error as a student and verify access for both students and staff with valid and invalid department selections. Done means unauthorized users cannot view the portal and students receive a handled access response instead of a crash.

索引モデルが issue の本文から書いたものです。

説明

The department portal doesn't check whether you are supposed to be able to view the pages you are supposed to be able to see.
This was originally circumvented by checking which departments are viewable from the drop-down to select a department.
However, there is no check to ensure that a user is actually in the department they have selected.

What does this mean?
This means that by selecting an ORG and an ACCOUNT in the URL, the user gains access to the department portal. Take, for instance, a student! Image

The other pages on the department portal seem to have solutions to this issue. Specifically, the position management page has an explicit check for this. The challenge for the department portal is that there needs to be a valid list of departments, but a student has no departments they are a part of. This causes a peewee error because you would need to check the department ID to ensure it matches a student (which the student doesn't have).

In short, students don't have a department. Department portal checks for this to see if the user has access to the department, and it then crashes the page. Find a way to check that the user (both staff or student) has access to the department without crashing the page.

主要言語
Python
スター
1
フォーク
1
平均マージ
2時間 57分
マージ済み PR(30日)
1

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BCStudentSoftwareDevTeam/lsf のほかの issue

BCStudentSoftwareDevTeam/lsf の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。