将用户限制为他们拥有的对象 [英] Restricting Users to Objects they own
问题描述
我有一个订阅者的应用程序。每个订户也将是用户。我想在订阅者表中存储拥有该记录的用户,并且该用户只能编辑该记录。当具有订户角色的用户登录时,
将仅查看他的记录并且只能编辑它。
Hi, I have an application with subscribers. Each subscriber will also be a user. I want to store in the subscriber table the user that owns the record and for that user to only beable to edit that record. When the User with the Subscriber Role logs in he will see only his record and only be able to edit it.
我看不到我可以存储引用的位置订阅者表中的用户。或者这对LightSwitch来说不是正确的想法?
I don't see where I can store a reference to a User in the Subscriber table. Or is this not the right thinking for LightSwitch?
谢谢,
Jim
推荐答案
感谢您对LightSwitch的关注。在您的场景中,我建议您创建权限并编写逻辑,以限制对编辑recrods的访问。请仔细阅读Matt的文章:
http://blogs.msdn.com/b/mthalman/archive/2010/09/02/using-application-permissions-in-visual-studio-lightswitch.aspx
另外,请浏览
http:// msdn。 microsoft.com/en-us/lightswitch/gg278959
这篇关于将用户限制为他们拥有的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!