Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phd student now has email change button #1767

Open
wants to merge 3 commits into
base: master-dev
Choose a base branch
from

Conversation

jmrq9
Copy link
Collaborator

@jmrq9 jmrq9 commented Nov 14, 2024

closes #1754

@lgpawel
Copy link
Contributor

lgpawel commented Nov 30, 2024

Mało znane fakty: nie wszyscy użytkownicy systemu są studentami lub pracownikami – jest też kategoria external_contractors (i nie umiem szybko odpowiedzieć na pytanie, czy jest – w praktyce lub chociaż w teorii – ktoś poza wszystkimi z trzech wyżej wymienionych). Tak że trzeba ten warunek zmodyfikować mniej radykalnie, żeby oni również, jak i dotąd, mieli przedmiotowy przycisk.

Warto też będzie zostawić komentarz w kodzie, bo ktoś jeszcze zachce to w przyszłości "uprościć" w jedną lub w drugą stronę…

@@ -63,7 +63,7 @@ <h2>Moje dane</h2>
</table>

<a class="btn btn-light" href="{% url 'password_change' %}" role="button">Zmień hasło</a>
{% if not user.student %}
{% if user.employee or is_external_contractor %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zostawiłbym też or not user.student żeby pozostawić dotychczasowe zachowanie dla hipotetycznych użytkowników nie będących w żadnej z tych trzech grup (bez tracenia czasu na dalsze zastanawianie się, czy oni w ogóle istnieją).

@@ -159,9 +159,11 @@ def my_profile(request):
consultations).
"""
semester = Semester.get_upcoming_semester()
is_ext_contractor = is_external_contractor(request.user)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
is_ext_contractor = is_external_contractor(request.user)
is_external_contractor = is_external_contractor(request.user)

Jeszcze nie jest tak źle z długością naszych identyfikatorów / wierszy kodu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

users: Brak guzika do zmiany adresu poczty elektronicznej
2 participants