getItemIfAllowed
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
Method used to get an item if the user is authorized
the target item as T
: the user identifier
: the identifier of the target item