(本文档仅供参考)
问题
如果想根据用户所拥有的角色判断数据的使用权限,现在产品没有该函数,如何获取当前登陆用户的所属角色?
解决方案
选择【增加自定义函数】,然后把CurrentUserAllRoleIDs和CurrentUserAllRoleNames直接填写进去,具体如下:
1、【公共设置】--》【函数列表】--》【系统函数】--》【字符串】--》右键--》【增加自定义函数】:
2、添加CurrentUserAllRoleIDs和CurrentUserAllRoleNames
3、测试函数效果: