getItemIfAllowed

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