-
Notifications
You must be signed in to change notification settings - Fork 224
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
Roles or Groups for site users #56
Comments
Hi Haven't this feature right now. But we plan to make a permission tab on the page to customize:
|
Ok, thanks. So then you will need to prevent users with "front end" roles from accessing the admin panel. I prevented it by rewriting protected virtual bool AuthorizeCore(RequestContext requestContext)
{
if (requestContext.HttpContext.User.Identity.IsAuthenticated)
{
if (Kooboo.CMS.Sites.Services.ServiceFactory
.UserManager.IsAdministrator(requestContext.HttpContext.User.Identity.Name))
return true;
if (!RequiredAdministrator)
{
var roles = Kooboo.CMS.Account.Services.ServiceFactory
.RoleManager.All().Select(s => s.Name).ToArray();
return IsInAnyRole(requestContext.HttpContext.User, roles);
}
}
return false;
} |
@aruss Thanks, I have reproduced the issue. |
…roles for backend he still can access the admin panel and see the page structure do couple commands.
It is the membership feature, main features:
|
Can I assign roles to site users or assign users to groups so I can restict access to pages for specific roles or user groups?
Cheers
aruss
The text was updated successfully, but these errors were encountered: