Skip to content

Commit

Permalink
edit to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hadimansouri committed Aug 10, 2019
1 parent 04b8bce commit 9c58137
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/SDP/Views/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public static function find($request, $match)

public static function download($request, $match)
{
Pluf::loadFunction('SDP_Shortcuts_GetLinkBySecureIdOr404');
$link = SDP_Shortcuts_GetLinkBySecureIdOr404($match['secure_link']);
$asset = $link->get_asset();
// Check that asset has price or not
Expand Down

0 comments on commit 9c58137

Please sign in to comment.