Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Add check for Statamic version on Forms action
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Jun 20, 2022
1 parent 240a610 commit f9fa2dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Actions/DuplicateFormAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public static function title()
public function visibleTo($item)
{
return $item instanceof Form
&& Statamic::pro();
&& Statamic::pro()
&& version_compare(Statamic::version(), '3.3.16', '>=');
}

public function visibleToBulk($items)
Expand Down

0 comments on commit f9fa2dc

Please sign in to comment.