Permission to control who can see the 'hidden' testcases in a question

Permission to control who can see the 'hidden' testcases in a question

von Tim Hunt -
Anzahl Antworten: 2

I was just working out which users got to see the 'hidden' testcases in a question.

(hmm, not very good contrast in our theme).

Anyway, I found that this was tied to a standard Moodle capability: 'moodle/grade:viewhidden'.

That is potentially awkward for us. I was wondering if we should should create a specific capability for this (qtype/coderunner:viewhiddentestcases, by default allocated to the same roles that have moodle/grade:viewhidden).

Richard, if you are OK with that concept, I could code it an send you a pull request.

Als Antwort auf Tim Hunt

Re: Permission to control who can see the 'hidden' testcases in a question

von Richard Lobb -
Having a specific capability seems like a good idea: adds flexibility at zero cost to the vast majority of users. Happy to accept a pull request.

With regard to colouring: I did deliberately go for a subtle darkening of colouring for the tests that were hidden from the students. However, that's just my personal take. If you'd like to suggest a higher-contrast version I can try it here and get feedback from our tutor team on preferences.