Allow domain roots to list all their submissions.
wlnirvana opened this issue · 10 comments
https://vijos.org/d/kidolab_2019_Spring/user/136941
Last accessed: Mon Mar 25 15:23:42 CST 2019
Is this 0 or 46?
This is the actual number of his submissions, while some of them are hidden (contest submission or homework submission).
Is it possible for a domain root user to view all the submissions (including the hidden ones) of a user then?
Due to the design, we currently do not support a domain root to list all its submissions, and only system root can do so. Sorry.
Just to confirm, even the programs are submitted to a domain (say D), the root user of D is still not able to view the code, right?
For the code, the domain root can see all the code submitted to the domain.
By the way, if the domain root knows the submission id, he/she can see the single submission.
We have different permission checking for listing and viewing.
https://github.com/vijos/vj4/blob/master/vj4/handler/record.py
For the code, the domain root can see all the code submitted to the domain.
How to do that? I feel like the domain root can view only one (the latest) submission from users for each problem via the scoreboard. For the reference the I am using hidden problem.
You need to know the submission id ^_^ T_T.
I see. I will leave the issue open as I think domain root ought to have the permission to list all records submitted to his/her domain, but feel free to close it or tag it as won't fix. Thanks for the clarification though.
View by enumerating the submission ID (fog