From 981efb3211e438d0b9a69c2b8fd2aa8a553fe9ef Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 21 Aug 2022 17:00:14 +0800 Subject: [PATCH] fix user_can: torrent_hr --- public/edit.php | 4 ++-- public/takeedit.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'].": "."   ".'