-
Notifications
You must be signed in to change notification settings - Fork 380
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
SecurityTrimmedControl - No permissions template #307
Comments
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Thanks! This could be a nice enhancement to the control. |
Above comment looks to be spam. Are there mechanism here to handle? |
I would be willing to create a PR for this issue, but wouldn't mind a bit of advise on how to best implement it. The control was designed to display content when the permissions matched, so what is the best approach when you suddenly want to do the complete opposite? |
I would modify the control to receive two templates, the default one for "permissions match" and one other, optional, for "not enough permissions". |
Looked like an easy thing. There is pull request waiting: |
Hi, this is just a suggestion..
I implemented this control to handle the logic of checking user permissions for me, but then i realized I had to put some message if the user didn't have them, otherwise, the entire section would be empty and the user wouldn't understand what was going on.
Since this control doesn't have any "No permissions template" i finally had to write code to check if the user didn't have permissions and show a placeholder with a message in that case, finally, ended up using my custom code for everything, would be great if it could have this functionlity too.
The text was updated successfully, but these errors were encountered: