getLinkIfAllowed
@Query(value = ""SELECT l.* FROM " + LINKS_KEY + " AS l WHERE l." + OWNER_KEY + "=:" + USER_IDENTIFIER_KEY
+ " AND " + LINK_IDENTIFIER_KEY + "=:" + LINK_IDENTIFIER_KEY", nativeQuery = true)
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