0

是否可以在一个 Brat 服务器实例上分离用户?我知道如何在 config.py 文件中创建新的用户帐户,但似乎所有用户都可以通过网络应用程序中的收集窗口查看所有文件(在 Brat 的数据目录中)。

我需要用户只能查看(以某种方式)属于他们的登录名的文件。我将文本和 .ann 文件直接上传到数据文件夹,因此用户只需要登录并开始注释。

这可能吗?

4

1 回答 1

0

I've discovered a way. You can place an acl.conf file into the desired directory and set some rules: User-Agent: * Disallow: / User-Agent: testuser Allow: /

This restricts the access to the 'testuser' login and displays "access denied" message to other users. It has some disadvantages which are discussed in the Google User Group, along with another approach.

于 2019-11-04T10:00:28.557 回答