get Link If Allowed

@Query(value = ""SELECT * FROM " + LINKS_KEY + _WHERE_ + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY + " AND " + LINK_IDENTIFIER_KEY + "=:" + LINK_IDENTIFIER_KEY", nativeQuery = true )
abstract fun getLinkIfAllowed(@Param(value = "user_id") userId: String, @Param(value = "link_id") linkId: String): CustomRefyLink

Method to execute the query to get a custom link if the owner is authorized

Return

the custom link if the user is authorized as CustomRefyLink

Parameters

userId

The identifier of the user

linkId

The link identifier