防止用户删除 Alfresco 上传的文件
我已经测试 Alfresco 几天了,但似乎没有找到解决方案。
在 Alfresco 中,当用户将文件上传到具有贡献者角色的文件夹时,一切正常,但他可以删除该文件。我想避免这种情况,所以我定义了一个规则来获取每个上传文件的所有权。该脚本定义为
document.setOwner('admin');
这样该文件只能由管理员删除。如果规则处于活动状态,则所有其他用户的上传都会失败。有谁知道在这种情况下使用脚本获取文件的所有权需要什么?
我正在使用 Alfresco 4.0a
谢谢。
I've been testing Alfresco for a few days but seem not to find a solution for this.
In Alfresco when an user uploads a file to a folder where it has the contributor role everything works nice, but he can delete that file. I want avoid that so I have defined a rule that takes the ownership of every file uploaded. The script is defined as
document.setOwner('admin');
This way the file can be deleted only by admin. If the rule is active the upload fails for everyother user. Does anybody know what it takes to take ownership of a file in that situation using a script?
I am using Alfresco 4.0a
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想你可以更好地执行以下操作,
因为管理员已经在 Alfresco 中拥有完全权限。
I guess you can better do the following
Because admin already has full authority in Alfresco.