We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

[Solved] MSM Cross Site Access for Editor

How Do I?

ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

Hi,

We have MSM installed with 3 sites under separate domains. All working well and Admin can navigate the CP for each site ok.

However we have set up a blog editor role who can log in ok, but gets “You are not authorised to view this page” when they try to change site away from the first domain.

Our system files are in a folder outside the roots of each site. Each site has its own admin.php and index.php file as described in the docs and we have set a multi-site login parameter in the config file, listing each of the domains. The editor role has CP access.

We’ve been going round and round on this with no resolution. Appreciate if anyone can point us at likely causes.

Many thanks Chris

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Chris, Just to verify, are you on the latest version of EE (6.0.6)? There was a bug reported in 6.0.3 which matches what you’re describing ( https://github.com/ExpressionEngine/ExpressionEngine/issues/908 ) which was resolved in 6.0.4. thanks.

       
ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

Ha! We are on 6.0.3. Thank you Andy I will upgrade and report back.

       
ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

Strangely the version box in the bottom right says ‘Up to date’ at 6.0.3 and does not give and option to update.

       
ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

Not resolved.

Updates all done to 6.0.6. I have edited all site admin, index files and the config file to the previous values. Sites are working and Admin can navigate CP ok.

However Editor can still only login into base site and gets ‘not authorised’ on others.

       
ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

Not sure if its relevant although it does seem important. When saving the settings as Admin the attached image flashed briefly before the CP indicated a successful save.

I check the config.php file in the system files directory and it is set to:

$config[‘base_url’] = $config[‘site_url’];

and in each of the 3 individual site index.php files are set with their domains as follows:

$assign_to_config[‘site_url’] = ‘https://www.mysite1.com/’;

       
ChristopherG's avatar
ChristopherG
7 posts
3 years ago
ChristopherG's avatar ChristopherG

RESOLVED:

By the url I can see that the Editor was being directed to this URL which triggers the error.

https://www.mysite.com/admin.php?/cp/publish/edit&filter_by_channel=5

Manually changing the url to the following, successfully shows the CP and I can do this on all sites.

https://www.mysite.com/admin.php?/cp/homepage

So it would seem, at least after the upgrade anyway, to only be a straight page access issue.

Although I had set the channel access for Blog under the CP, they were no longer set under the channel ‘Permissions’ tab as well. I believe they were set before but perhaps not. So I cant tell for sure if it was the 6.0.3 bug or just me.

       
Andy McCormick's avatar
Andy McCormick
183 posts
3 years ago
Andy McCormick's avatar Andy McCormick

Ah. If this bug ( https://github.com/ExpressionEngine/ExpressionEngine/issues/1087 ) is what you’re referring to, that’s where I was going to go next. Essentially you could clear out permissions on other MSM sites when editing permissions on a different one.

glad to hear you figured it out.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.