Detail changes
This commit is contained in:
parent
ff5a948063
commit
701fc1a21d
|
@ -33,15 +33,13 @@
|
||||||
"Add custom tags required by ADL-generated code to the parser's tags."
|
"Add custom tags required by ADL-generated code to the parser's tags."
|
||||||
(p/add-tag! :ifmemberof
|
(p/add-tag! :ifmemberof
|
||||||
(fn [args context content]
|
(fn [args context content]
|
||||||
(if-member-of-permitted args context
|
(if-member-of-permitted
|
||||||
(get-in content [:ifmemberof :content]) (get-in content [:else :content])))
|
args context
|
||||||
|
(get-in content [:ifmemberof :content])
|
||||||
|
(get-in content [:else :content])))
|
||||||
:else
|
:else
|
||||||
(fn [args context content]
|
(fn [args context content]
|
||||||
"")
|
"")
|
||||||
:endifmemberof))
|
:endifmemberof))
|
||||||
|
|
||||||
(add-tags)
|
(add-tags)
|
||||||
|
|
||||||
(if-member-of-permitted '("public" "canvassers") {:user-roles #{"canvassers"}} "caramba" false)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue