码迷,mamicode.com
首页 > 其他好文 > 详细

Make template available for multiple groups

时间:2020-04-18 15:53:51      阅读:52      评论:0      收藏:0      [点我收藏+]

标签:acl   pre   group   multiple   i++   star   make   tip   call   

  • I added a GlideList field called Groups (u_groups) at the template form.

  • Added the following to ACL sys_template read:
  • u_groups is not empty

    1. Change the answer in Business Rule SNC Template Query like this
    var arr_groups = getMyGroups().toArray();
        var str_groups = ‘‘;
        for (var i = 0; i < arr_groups.length; i++) {
            if (i == 0) {
                str_groups += ‘u_groupsLIKE‘ + arr_groups[i];
            } else {
                str_groups += ‘^ORu_groupsLIKE‘ + arr_groups[i];
            }
        }
        current.addEncodedQuery(‘^NQ‘ + str_groups);

    Make template available for multiple groups

    标签:acl   pre   group   multiple   i++   star   make   tip   call   

    原文地址:https://blog.51cto.com/13716461/2488379

    (0)
    (0)
       
    举报
    评论 一句话评论(0
    登录后才能评论!
    © 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
    迷上了代码!