show approval only when not review visible is no

This commit is contained in:
xiaomlove
2022-07-05 15:36:11 +08:00
parent 147cf6db71
commit b7f3ae25e8
3 changed files with 8 additions and 3 deletions
+2 -2
View File
@@ -811,8 +811,8 @@ $approvalStatusNoneVisible = get_setting('torrent.approval_status_none_visible')
$approvalStatusIconEnabled = get_setting('torrent.approval_status_icon_enabled');
$approvalStatus = null;
$showApprovalStatusFilter = false;
//when enable approval status icon, all user can use this filter, otherwise only staff member can use
if ($approvalStatusIconEnabled == 'yes' || get_user_class() >= $staffmem_class) {
//when enable approval status icon, all user can use this filter, otherwise only staff member and approval none visible is 'no' can use
if ($approvalStatusIconEnabled == 'yes' || (get_user_class() >= $staffmem_class && $approvalStatusNoneVisible == 'no')) {
$showApprovalStatusFilter = true;
}
//when user can use approval status filter, and pass `approval_status` parameter, will affect