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

BC-8635 - fix task permission #5417

Merged
merged 5 commits into from
Jan 7, 2025
Merged

Conversation

virgilchiriac
Copy link
Contributor

@virgilchiriac virgilchiriac commented Jan 7, 2025

Description

when the task had no course or lesson
it was possible for another teacher
to gain permission to the task

Links to Tickets or other pull requests

BC-8635

Approval for review

  • DEV: If api was changed - generate-client:server was executed in vue frontend and changes were tested and put in a PR with the same branch name.
  • QA: In addition to review, the code has been manually tested (if manual testing is possible)
  • All points were discussed with the ticket creator, support-team or product owner. The code upholds all quality guidelines from the PR-template.

@virgilchiriac virgilchiriac enabled auto-merge (squash) January 7, 2025 11:01
Copy link
Contributor

@EzzatOmar EzzatOmar left a comment

Choose a reason for hiding this comment

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

I couldn't find a reason for hasParentPermission to default return true.
Best guess is that it is a copy paste fragment.

Good catch!

Copy link
Contributor

Choose a reason for hiding this comment

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

you can remove the comment in line 45:
// TODO why parent permission has OR cond?

@virgilchiriac virgilchiriac merged commit 3d3388f into main Jan 7, 2025
76 checks passed
@virgilchiriac virgilchiriac deleted the BC-8635-fix-task-permission branch January 7, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants