checking if current user is author of the document

后端 未结 2 1406
刺人心
刺人心 2021-01-24 07:19

I have a formA where I have a field \'_author\' which is of type Authors/Computed for display with value (@Subset($Updatedby;1)). I display information from formA on viewA. What

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-24 07:24

    A handy workaround is to create a Page with an embedded view. This view is exactly like your view but has an additional first categorized (!) column with your field _author.

    Put into embedded view's property "Show single category" the formula @UserName or @Name([CN]; @UserName) depending on how your categorized column _author is formatted. Show then always the Page instead of the view.

    This way you avoid trouble with "Shared, private on first use" views and users see exactly their own documents only.

提交回复
热议问题