ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Member Group CP permission issue

March 11, 2011 7:08pm

Subscribe [3]
  • #1 / Mar 11, 2011 7:08pm

    Paul Phillips

    12 posts

    Hi,

    Running version 2.1.3 build 20101220.

    I’m using the MSM and created a new user group (“Group A”) that has CP access to “Site A” but not “Site B”.

    My file structure is:

    /public_html/site_a/
      index.php
      admin.php

    /public_html/site_b/
      index.php
      admin.php

    I had issues with Group A users logging in at /site_a/ until I read http://ellislab.com/forums/viewthread/174006/ and added the following to /site_a/admin.php:

    $assign_to_config['site_name'] = 'site_a';

    So now I’m able to log in at /site_a/ HOWEVER the site selector drop down in the upper right displays both “Site A” and “Site B”.  I expect to see only “Site A”.

    MOREOVER, if I click “Site B” from that selector I’m taken to [Site A] > [CP Home] > [Site Management] > [Switch Site] which is displayed twice on top of each other! EEEK!

    For CP access I have Control Panel Session Type set to “Cookie Only”, but the same thing happens either way.

  • #2 / Mar 12, 2011 5:45pm

    John Henry Donovan

    12339 posts

    Paul,

    There is a confirmed bug report here. That looks like the issue you are running into. Can you confirm?

    and added the following to /site_a/admin.php:

    $assign_to_config[‘site_name’]  should only be added to the index.php files

  • #3 / Mar 14, 2011 12:26pm

    Paul Phillips

    12 posts

    Paul,

    There is a confirmed bug report here. That looks like the issue you are running into. Can you confirm?

    Yup, that’s the same issue.

    and added the following to /site_a/admin.php:

    $assign_to_config[‘site_name’]  should only be added to the index.php files

    Understood, but doing so prevents the user assigned to site A from logging in at all.  Adding it to admin.php solves this issue. So what am I doing wrong?

  • #4 / Mar 15, 2011 5:27am

    John Henry Donovan

    12339 posts

    Paul,

    Yes my bad. You are correct.

    So now I’m able to log in at /site_a/ HOWEVER the site selector drop down in the upper right displays both “Site A” and “Site B”.  I expect to see only “Site A”.

    That is the current behaviour. Can you mention that as a comments of the bug report I linked to. Doing so you will have subscribed yourself to any updates there too.

  • #5 / Mar 16, 2011 12:06pm

    Paul Phillips

    12 posts

    Thanks.

    In the meantime, I suppose I’ll make the fix myself.  Just curious… is there a place I can contribute bug fixes?

  • #6 / Mar 16, 2011 10:58pm

    Sue Crocker

    26054 posts

    Hi, Paul. See my signature for a link to the bug tracker, or just respond to the link John posted. Does that help?

  • #7 / Mar 17, 2011 12:12pm

    Paul Phillips

    12 posts

    Hi, Paul. See my signature for a link to the bug tracker, or just respond to the link John posted. Does that help?

    I was really hoping there was a place I could upload the fix, like a diff file or something similar.  Leaving comments is great and all, but there’s no file upload functionality there.

  • #8 / Mar 18, 2011 7:52am

    John Henry Donovan

    12339 posts

    Paul,

    Making the bug report and adding what you did yourself in the text-area provided is the recommended route. You can use BBCode and either add your code changes or link to a txt file maybe

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases