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

Only show Dashboard link in User.cshtml if the user has permission to access it #2059

Closed
orchardbot opened this issue Nov 15, 2011 · 2 comments

Comments

@orchardbot
Copy link

@Piedone created:
https://orchard.codeplex.com/workitem/18232

...since there is no point to have a link that goes to the Access Denied page. Fix is the following code:

@if (AuthorizedFor(Orchard.Security.StandardPermissions.AccessAdminPanel)) {
@Html.ActionLink(T("Dashboard").ToString(), "Index", new { Area = "Dashboard", Controller = "Admin" })
}

Currently the link is displayed without checking.

@orchardbot
Copy link
Author

@sebastienros commented:

Fixed in changeset 12008e8a0c9c

@orchardbot
Copy link
Author

@sfmskywalker commented:

Fixed in changeset a0a9933

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

No branches or pull requests

1 participant