get Item If Allowed

abstract fun getItemIfAllowed(userId: String, itemId: String): T

Method used to get an item if the user is authorized

Return

the target item as T

Parameters

userId

The user identifier

itemId

The identifier of the target item