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

User can’t access subsite admin pages when they have access to 1 subsite #508

Open
dozer247 opened this issue Feb 12, 2023 · 0 comments
Open

Comments

@dozer247
Copy link

When creating a user with access only to a subsite, when that user logs in they are logged into the main site and the subsite select box doesn’t appear so the user can’t switch to the subsite they have access to use.

I expected the user would log straight into the subsite admin page instead, just like subsite 1.3.2 .

Here are the steps to replicate the issue.
With a clean install with the following

 "require": {
        "php": "^7.4 || ^8.0",
        "silverstripe/recipe-plugin": "^1.2",
        "silverstripe/recipe-cms": "~4.12.0@stable",
        "silverstripe-themes/simple": "~3.2.0",
        "silverstripe/login-forms": "~4.8.0@stable",
        "silverstripe/subsites": "^2.7"
    },

I created a new subsite and added a new subsite domain.
As the administrator under the main site i created a new role e.g.(web master) with the following permissions

Screenshot 2023-02-12 at 12-42-22 Silverstripe - Security

Then switching to the subsite admin page by using the subsite selector i added a new security group say subsite editor.
The security group subsite editor had no Parent group and i assigned the web master role i created earlier.
In the subsite security group tab i selected "only these subsite" and the subsite created earlier.

I then created a new users under the subsite admin page and gave the user the subsite editor group

When logging in as this user they are logged into the main site admin pages and I can't switch to the subsite admin pages they have access to.

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

No branches or pull requests

2 participants