Ticket (Solved)

Multi tenancy: Access Denied, do not have permission?

Hey guys, when I use 1.8 - 1.9,.1,.2,.3,.x with my module that relies upon the "multi tenancy" module - all works well. Though testing the 1.10 and dev branch, I get:

Access Denied: You do not have permission to complete your request.

…when trying to change the URL host as the admin/super user? Has anyone got any clues as to what's changed or what I need to amend to sort this [or possibly a bug?]? Very appreciative for any input you may have, big thanks, Liv PS> slightly embarrassing, but when I was searching for a solution, I found references to my own post back in August haha -- completely forgot I had this issue before and it's still unsolved: http://orchard.codeplex.com/discussions/644388

Further Info: Running 1.9.3 works, and as I wish to use Layouts latest features: * I added the Dev 'Orchard.Conditions' Module and enabled - Tenanacy still worked. * I added Dev Orchard.Layouts / DynamicForms and associated files to compile - error above occurs :(

Re: Multi tenancy: Access Denied, do not have permission?

Hmm, so it appears I had some unknown versioning conflicts - once I deleted my working copy and rebased to 'dev' I could see the Tenancy admin controller had this addition [wasn't showing before];

        //else if (tenant.Name == _thisShellSettings.Name)
        //    return new HttpUnauthorizedResult();

…so once I commented it out, all was back to normal. Thanks for letting me take up some forum space haha, Liv

Friday, January 22, 2016 1:17:13 AM byLivyChops

Re: Multi tenancy: Access Denied, do not have permission?

After a quick look, as i understand here is that you need to be in the default tenant and you can't edit-post yourself, you can do this only for other tenants. If you want to change e.g the url host of the default tenant, you need to do this through the base url of the site settings...

Friday, January 22, 2016 2:27:57 AM byjtkech
  • jtkech
  • Lv. 13 Rookie
  • Total EXP: 1028

Re: Multi tenancy: Access Denied, do not have permission?

Hmm, I did post a reply but i'm not sure where it went? So again, thanks for the reply - but unfortunately I need to add comma delimited URLs, so Base Url won't suffice. Is there any method other than editing the source code like I have done? Thanks for the support, Liv

Wednesday, February 10, 2016 11:53:41 PM byLivyChops

Re: Multi tenancy: Access Denied, do not have permission?

Oh, i understand your use case. So, it seems to be useful to be allowed to do this... Maybe worth that you open an issue on github to request this...

Not tested but, as a temporary workaround without editing the source code, try to edit your App_Data/Sites/Default/Settings.txt file, and add this:

RequestUrlHost: here your comma delimited URL hosts

Best.

Thursday, February 11, 2016 12:36:49 AM byjtkech
  • jtkech
  • Lv. 13 Rookie
  • Total EXP: 1028

Post a reply

You need to be signed in to post a reply.

Sign In