The SIO2 project
  1. The SIO2 project
  2. SIO-2353

Some links in teacher problems view are not allowed to use

    Details

      Description

      When a teacher adds a public problem from problemset, they can modify some task settings.
      There are however two links, to which the teacher, not owning the problem, has no rights.
      These are package link (to download package) and advanced problem settings link.
      Error 403 occurs, when entering those links.
      It would be worth removing those links from teacher view

        Issue Links

          Activity

          Hide
          Gerrit Gerrit added a comment -
          Change oioioi~master~I04b6aac4d7c5040e4019310bc40994763df1a048, patchset 1
          https://gerrit.sio2project.mimuw.edu.pl/3501

          SIO-2353 Some links in teacher problems view are not allowed to use

          Added a threading local variable do ProblemInstanceAdmin
          to know the request when creating admin links.
          If user does not have admin rights to the problem,
          package and advanced settings links to not show.

          Change-Id: I04b6aac4d7c5040e4019310bc40994763df1a048
          Show
          Gerrit Gerrit added a comment - Change oioioi~master~I04b6aac4d7c5040e4019310bc40994763df1a048, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3501 SIO-2353 Some links in teacher problems view are not allowed to use Added a threading local variable do ProblemInstanceAdmin to know the request when creating admin links. If user does not have admin rights to the problem, package and advanced settings links to not show. Change-Id: I04b6aac4d7c5040e4019310bc40994763df1a048

            People

            • Assignee:
              Szymon Acedański
              Reporter:
              Stanisław Strzelecki
              TAG Developer:
              Stanisław Strzelecki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: