........S. [ZBXNEXT-2519] refactored mediatype permission checks