使用 Rhino Security 删除用户时出现问题
有人可以帮我确认一下,如果我将一个用户添加到多个组,然后调用RemoveUser,该用户实际上会从 security_UsersToUsersGroups 表中删除吗?
我问这个问题是因为,就我而言,使用最新的代码,我发现我的用户没有从该表中删除。
生成的唯一删除查询是:
exec sp_executesql N'delete from security_Permissions where [User]=@p0',N'@p0 int',@p0=7
引擎从不尝试从 security_UsersToUsersGroups 中删除用户。
关于可能出现问题的任何建议或想法?
谢谢,
瑞克
Can someone please confirm for me that if I add a user to several groups, and then call RemoveUser, that the user will in fact be removed from the security_UsersToUsersGroups table?
I ask because, in my case, using the latest code, I am seeing that my user Is not being removed from this table.
The only delete query being generated is:
exec sp_executesql N'delete from security_Permissions where [User]=@p0',N'@p0 int',@p0=7
The engine never tries to delete the user from security_UsersToUsersGroups.
Any suggestions or ideas on what might be wrong?
Thanks,
Rick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该尝试使用 DetachUserFromGroup
这是生成的查询:
You should try to use DetachUserFromGroup
This is the query generated: