-
Notifications
You must be signed in to change notification settings - Fork 13
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
Regression with subsites compatibility #38
Comments
I've confirmed it as a regression, not just in the tests |
I've made a mistake in my thinking with that subsites pull request. In psuedo code, this is what I've changed it to do when you're asking which subsites can be accessed for a given permission code:
I think the problem is that the permission check doesn't cross reference against the subsites a user's group can be used in, so they're all treated as global checks. In practice the permission system seems to be working, but the API has clearly regressed since this report is broken. I'll need to reintroduce some of the previous logic to run SQL queries against the member's groups in order to filter permissions available for each group the member is in, which is in turn filtered against the current subsite. The Permission::checkMember() method won't work I don't think =( |
I've brain dumped at silverstripe/silverstripe-subsites#358 (comment) |
We've reverted the subsites change |
There's a test failing against the latest subsites version: https://travis-ci.org/silverstripe/cwp-recipe-kitchen-sink/jobs/423801729#L950
This would've been caused by silverstripe/silverstripe-subsites#388
Needs investigation. We should start by separating that test into individual cases to ensure it's not pollution of the global state between loading each fixture and running tests on them
The text was updated successfully, but these errors were encountered: