Tag "HasPermission" (only for category items) is used to check if current user has given permission. Usually it's used from inside of <inp2:m_if .../> tag like this:
<inp2:m_if check="n_HasPermission" permissions="NEWS.ADD|NEWS.ADD.PENDING">
show, when have permission
</inp2:m_if>
In "advanced" theme it's used from within <inp2:m_DefineElement .../> tag in lists and on category item details page.
However, when such tag is used after items were already printed, then it produces database query leading to fatal error.
- mentioned in
-
Wiki Page Loading...