Skip to content

Exercise: Allow access to hotspot question images in quizzes - refs BT#22633 #6304

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

Merged
merged 1 commit into from
May 21, 2025

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

if ($rel && $rel->getQuiz()) {
$quiz = $rel->getQuiz();
// Allow if the user has VIEW rights on the quiz
if ($this->security->isGranted('VIEW', $quiz)) {

Choose a reason for hiding this comment

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

Avoid deeply nested control flow statements.

Copy link

Code Climate has analyzed commit cad11c3 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@NicoDucou NicoDucou merged commit f21ca4c into chamilo:master May 21, 2025
2 of 8 checks passed
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