在特定用户的基于角色的应用程序中避免基于角色的行为 [英] Avoiding role based behaviour in role based application for specific user

查看:76
本文介绍了在特定用户的基于角色的应用程序中避免基于角色的行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个网络应用程序,我们根据这些爱好跟踪人们。

每当有人改变他或她的爱好时,邮件一直是根据角色发送给他,管理员和其他几个人。

现在我想创建一个测试用户,如果他/她的爱好被更改,管理员的电子邮件不应该推出。任何人都可以告诉我没有编码的任何方式做同样的事情。最重要的是我想在没有任何编码的情况下这样做。否则我可以轻松地在网络配置中添加一个密钥,我可以从每个地方检查它,但我不想要这个。

请建议我可以或可以实现的替代方式。 />
谢谢

Hello everyone,
I have a web application in which we track peoples on the basis of there hobbies.
Whenever someone changes his or her hobby a mail has been sent to him, admin and few other peoples on the basis of there roles.
Now I want to create a test user for whom if his/her hobbies are changed, emails to admin should not roll out. Can anyone tell me any way of doing the same without coding. Most important thing is I want to do this without coding anything. Otherwise I could have easily added a key in web config and I could have checked it from every place but I don''t want this.
Please suggest some alternative way I could or can achieve.
Thanks

推荐答案

只需创建拥有所有权利的用户



快乐编码!

:)
just create user which have all rights

Happy Coding!
:)


如果我给他分配新的爱好,邮件仍会推出。我基本上想要创建一个可用于测试目的的测试用户。
Still the mails will be rolled out if I assign new hobbies to him. I basically want to create a test user which can be used for testing purpose.


这篇关于在特定用户的基于角色的应用程序中避免基于角色的行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆