Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if there is a need to access the data without filtering? #4

Open
draza67 opened this issue Dec 6, 2016 · 1 comment
Open

What if there is a need to access the data without filtering? #4

draza67 opened this issue Dec 6, 2016 · 1 comment

Comments

@draza67
Copy link

draza67 commented Dec 6, 2016

Maybe we should consider to develop (extension?) method(s) that temporarily, at the LINQ query level, suspends filtering by TenantId field. It may be necessary to let the special user group has access to all data in table whose POCO class already inherits TenantEntity Class.
How to do it?

@timg83
Copy link

timg83 commented Sep 23, 2017

You could easily skip the visitor by looking at the roles the user is in.

If(User.IsInRole("Admin"){ return; } else { FilterExpression(); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants