MT#4565 Fix boolean expression on read-only permissions

Our condition should only apply on admin and reseller role

(cherry picked from commit 8254001364d8ea40ef897b240abe43b994823fbe)