ddwrt:IfHasRights(1)" evaluates true if the current user has the "ViewListItems" right. "ddwrt:IfHasRights(3)" evaluates ...