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