check user privileges to populate canEdit/canDelete fields in freemarker