Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您可以为AppService创建一个基类,然后从此类得出您的应用程序服务。
在基类的构造函数中,您可以检查当前登录的用户是否是具有管理员角色的主机用户,然后禁用iMayhavetenant过滤器。
You can create a base class for the AppService, then derive your application services from this class.
In the constructor of the base class, you can check whether the currently logged-in user is a host user with an admin role and then disable the IMayhaveTenant filter.