ajax
To secure DWR calls, an ajax
element needs to be used. Similar to the
action
element, this element also has a required attribute
pattern
, and two optional attributes user
and
author
.
Syntax
<ajax pattern="text" user="(true|false)"? author="(true|false)"? > <permission>...</permission>? </ajax>
Attributes
pattern="
text"
-
The
pattern
attribute is common to bothaction
andajax
elements. The value of this attribute is an Ant like pattern string. Examples includedelete*
,*Blog
,delete*Image
. user="
(true|false)"
(optional)-
The
user
attribute is common to bothaction
andajax
elements. This is a boolean attribute, and, the default value isfalse
. If it is set totrue
, it will check if the given user is a logged in user. author="
(true|false)"
(optional)-
The
author
attribute is common to bothaction
andajax
elements. This is a boolean attribute, and, the default value isfalse
. If it is set totrue
, it will check if the logged in user is the author of the given content item.