bcgov / ckanext-bcgov

BC Data Catalogue source code, main ckan extension
http://catalogue.data.gov.bc.ca
GNU Affero General Public License v3.0
24 stars 23 forks source link

Admin's are not automatically added to newly created orgs #267

Open Mbrownshoes opened 7 years ago

Mbrownshoes commented 7 years ago

After creating a new sub-org we've noticed admin's are not automatically added, as they are to existing orgs. This means admin's do not receive pending publish notifications and cannot see records in this state. Surprisingly, they can edit these branches records - if they have the link.

jeff-at-h3 commented 6 years ago

delayed based on the outcome from Sector / subject transition #153 due to sectors being organizations

dkelsey commented 6 years ago

I suspect that the issues is a process sequence issue:

STEPS

  1. login as an Admin
  2. create a new sub-organization
  3. navigate to that sub-organization and click the 'members' link

I suspect that you will not see yourself listed as an admin. When any user logs-in their grants are retreived from WebADE (?) and their profile in the Catalogue is updated. You see evidence of this every time you login. the profile update, I assume, pokes your admin account into every sub-organization.

Following the steps above:

  1. log-out and log-in
  2. view the members of the sub-organization again.

I imagine you will see yourself as a member.

mdunhamwilkie commented 5 years ago

Tried @dkelsey suggested process. When I created the organization https://cat.data.gov.bc.ca/organization/members/test-organization and then looked at the members I was listed as an admin, but nobody else was listed. Logging out and in didn't change this. When I logged in as dbcuser3 (the test admin account) and looked at the members that account was now shown as well. But just these 2 members, not all the other admins. It looks like the other admins will not show up as members until they each log in.

(Note that I had to grant myself sysadmin in test in order to do this) - see https://github.com/bcgov/ckanext-bcgov/issues/605