mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-17 02:39:24 +01:00
Validate used operators when creating tagging rules
This commit is contained in:
parent
5a166c5c1a
commit
c23fc05df8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user