diff --git a/public/edit.php b/public/edit.php
index 91c6cb77..915ea331 100644
--- a/public/edit.php
+++ b/public/edit.php
@@ -163,7 +163,7 @@ else {
if (user_can('torrentsticky') || (user_can('torrentmanage') && $CURUSER["picker"] == 'yes')){
$pickcontent = $pickcontentPrefix = "";
- if(get_user_class() >= $torrentonpromotion_class)
+ if(user_can('torrentonpromotion'))
{
$pickcontent .= "".$lang_edit['row_special_torrent'].": "." ".'';
$pickcontent .= '';
@@ -196,7 +196,7 @@ else {
}
tr($lang_edit['row_pick'], $pickcontent, 1);
}
- if (get_setting('hr.mode') == \App\Models\HitAndRun::MODE_MANUAL && get_user_class() >= get_setting('authority.torrent_hr')) {
+ if (get_setting('hr.mode') == \App\Models\HitAndRun::MODE_MANUAL && user_can('torrent_hr')) {
$hrRadio = sprintf('', (string)$row['hr'] === '0' ? ' checked' : '');
$hrRadio .= sprintf('', (string)$row['hr'] === '1' ? ' checked' : '');
tr('H&R', $hrRadio, 1);
diff --git a/public/takeedit.php b/public/takeedit.php
index d1b67a5a..2352112f 100644
--- a/public/takeedit.php
+++ b/public/takeedit.php
@@ -57,7 +57,7 @@ $torrentOperationLog = [];
* hr
* @since 1.6.0-beta12
*/
-if (isset($_POST['hr']) && isset(\App\Models\Torrent::$hrStatus[$_POST['hr']])) {
+if (isset($_POST['hr']) && isset(\App\Models\Torrent::$hrStatus[$_POST['hr']]) && user_can('torrent_hr')) {
$updateset[] = "hr = " . sqlesc($_POST['hr']);
}