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

Role #115

Closed
mhamiache opened this issue Sep 6, 2016 · 1 comment
Closed

Role #115

mhamiache opened this issue Sep 6, 2016 · 1 comment

Comments

@mhamiache
Copy link

Hi,
I m trying to show or not to show thing depending if the user inside a role has read permission on some entity.
How can i do that?
For example my view of my account has a list of BonusEntity and i dont want everybody to see this:

@Html.SearchControl(new FindOptions(typeof (BonusEntity), "Entity.Account", ac.Value), new Context(ac, "BonusEntity"))

Thanks

@olmobrutall
Copy link
Collaborator

with

@if(Finder.IsFindable(typeof (BonusEntity))){

}

And using the authorization system. If you have just a SearchControl is automatic, but if you have a Tab or Group you need to use it.

BTW you can also find us in https://gitter.im/signumsoftware/framework

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