donglue1886 2012-03-03 14:52
浏览 103
已采纳

用户生成文件的权限管理

I'm currently working on a Website, which should enable users to host files like pictures and documents. I got a groups and user based Rightsmanagement in Place, but it does not quite fit this concept of groups and users.

For example:

A User uploads a file which should be collaborated on by a small group of 2-3 users. This group is dynamic and they should only get access to this one File. Another Group called Staff should be able to view it but not able to edit or delete it.

Another User, different from the First, also uploads the File, but only wants Staff to edit it and make it accessible to all users.

Effectively I would end up with many thousands of groups with many redundant rights. Is there any better approach to this?

Thanks

  • 写回答

2条回答 默认 最新

  • doushu9253 2012-03-03 15:28
    关注

    I think you can use something like "group leader" - first registered user for specyfic group. You can use his ID as Group ID (to reduce table count and avoid mess in table with groups without users).

    If you want information about best approach - read about file rights management in Unix (standard or ACL, if you need multiple groups on user).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 树莓派与pix飞控通信
  • ¥15 自动转发微信群信息到另外一个微信群
  • ¥15 outlook无法配置成功
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题