]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Validate used operators when creating tagging rules
authorKévin Gomez <contact@kevingomez.fr>
Sun, 18 Oct 2015 12:32:58 +0000 (14:32 +0200)
committerKévin Gomez <contact@kevingomez.fr>
Wed, 11 Nov 2015 15:23:49 +0000 (16:23 +0100)
src/Wallabag/CoreBundle/Entity/TaggingRule.php

index 97a29336e1ae2ad73ec1cd968c887b8d820b9bd8..472ae58240c9e0ac4f50827e24ac53dc464f9740 100644 (file)
@@ -28,7 +28,10 @@ class TaggingRule
      * @var string
      *
      * @Assert\NotBlank()
-     * @RulerZAssert\ValidRule(allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"})
+     * @RulerZAssert\ValidRule(
+     *  allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
+     *  allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or"}
+     * )
      * @ORM\Column(name="rule", type="string", nullable=false)
      */
     private $rule;