Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(view/torrent_upload): fix config key of upload flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jul 22, 2019
1 parent c9dc659 commit 854722a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/views/torrent/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@
<td>
<div class="row">
<div class="col-md-3">
<div class="switch<?= app()->user->getClass(true) > config('authority.upload_anonymous') ? '' : ' disabled' ?>">
<div class="switch<?= app()->user->isPrivilege('upload_flag_anonymous') ? '' : ' disabled' ?>">
<input type="checkbox" id="anonymous" name="anonymous" value="1"><label for="anonymous">Anonymous Upload</label>
</div>
</div>
<div class="col-md-3">
<div class="switch<?= app()->user->getClass(true) > config('authority.upload_anonymous') ? '' : ' disabled' // FIXME Config key ?>">
<div class="switch<?= app()->user->isPrivilege('upload_flag_hr') ? '' : ' disabled' // FIXME Config key ?>">
<input type="checkbox" id="hr" name="hr" value="1"><label for="hr">H&R</label>
</div>
</div>
Expand Down

0 comments on commit 854722a

Please sign in to comment.