mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: limit access for hidden problems' submission
This commit is contained in:
1 parent
77fc46c069
commit
738d622225
14 files changed
+52
-53
No files matched your search
@@ -550,6 +550,7 @@ Rank: 순위
|
||||
ranking: 순위
|
||||
Read data of own problems: 자신의 문제 데이터 읽기
|
||||
Read data of problem: 문제 데이터 읽기
|
||||
Read record codes: 점수 읽기
|
||||
Ready (☆▽☆): 준비 완료! (☆▽☆)
|
||||
Ready: 준비됨
|
||||
Recent {0} Records: 최근 {0} 점수
|
||||
|
||||
@@ -584,9 +584,9 @@ Quit Scratchpad: 退出在线编程模式
|
||||
Quote: 引用
|
||||
Rank: 排名
|
||||
ranking: 排名
|
||||
Read all records: 读取所有提交记录
|
||||
Read data of own problems: 读取自己题目的数据
|
||||
Read data of problem: 读取题目数据
|
||||
Read record codes: 读取记录的代码
|
||||
Ready (☆▽☆): 马上开始 (☆▽☆)
|
||||
Ready: 即将开始
|
||||
Recent {0} Records: 最近 {0} 条记录
|
||||
|
||||
@@ -353,9 +353,9 @@ QQ Group: QQ 群
|
||||
QQ Visibility: QQ 可見性
|
||||
Quit Scratchpad: 退出線上程式設計模式
|
||||
Rank: 排名
|
||||
Read all records: 讀取記錄
|
||||
Read data of own problems: 讀取自己題目的資料
|
||||
Read data of problem: 讀取題目資料
|
||||
Read record codes: 讀取記錄的程式碼
|
||||
Ready (☆▽☆): 馬上開始 (☆▽☆)
|
||||
Ready: 即將開始
|
||||
Recent {0} Records: 最近 {0} 條記錄
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.15.0",
|
||||
"version": "4.15.1",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<span class="icon icon-edit"></span> {{ _('Edit Contest') }}
|
||||
</a></li>
|
||||
{% endif %}
|
||||
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD) or handler.user.hasPerm(perm.PERM_READ_RECORD) %}
|
||||
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %}
|
||||
{% if model.contest.canShowRecord.call(handler, tdoc, true) %}
|
||||
<li class="menu__item"><a class="menu__link" href="{{ url('contest_code', tid=tdoc.docId) }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export All Code') }}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<span class="icon icon-edit"></span> {{ _('Edit Homework') }}
|
||||
</a></li>
|
||||
{% endif %}
|
||||
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD) or handler.user.hasPerm(perm.PERM_READ_RECORD) %}
|
||||
{% if handler.user.own(tdoc) or handler.user.hasPriv(PRIV.PRIV_READ_RECORD_CODE) or handler.user.hasPerm(perm.PERM_READ_RECORD_CODE) %}
|
||||
<li class="menu__item"><a class="menu__link" href="{{ url('homework_code', tid=tdoc.docId) }}">
|
||||
<span class="icon icon-download"></span> {{ _('Export All Code') }}
|
||||
</a></li>
|
||||
|
||||
Reference in new issue
Block a user