localgovdrupal / localgov_microsites_group

LocalGov Drupal Microsites Group integration
1 stars 2 forks source link

Admin (default) permissions #26

Closed ekes closed 2 years ago

ekes commented 2 years ago

We need to confirm that the 'microsite admin' has the correct permissions in the microsite when created.

Acceptance tests:

  1. Log into a microsite as the microsite admin
  2. Be able to edit the configuration of design
  3. be able to manage content.
  4. Not see anything else they don't want to see.
ekes commented 2 years ago

This is going to be more interesting than a 1.

Everything can be sorted with [3f2dabc] but then there's no access to create menu items. The issue is https://www.drupal.org/project/group_content_menu/issues/3152938 the microsite admin needs to have permission to administer group at which point all the tabs we've just hidden reappear as that's the override permission that can do all the things to and in a group.

ekes commented 2 years ago

https://www.drupal.org/project/group_content_menu/issues/3280653

msayoung commented 2 years ago

May be dealt with elsewhere but admins can't currently add the Page content type. Shall I create another issue for that @ekes ?

ekes commented 2 years ago

That's a bug. They do have the permission to add a page, just don't get to that form, or at least on my site. So new issue I'd say, looking at it:

If you go to https://localgov-micro-1.lndo.site/group/1/content/create/group_node%3Alocalgov_page (and are the admin of it you can add a page).

The action button on https://localgov-micro-1.lndo.site/group/1/nodes is visible too

But it goes to https://localgov-micro-1.lndo.site/group/1/node/create which would list the content types, which it doesn't, and also as there is only one content type it should automatically redirect to https://localgov-micro-1.lndo.site/group/1/content/create/group_node%3Alocalgov_page which it also doesn't.

ekes commented 2 years ago

So taking this as fixed.

With a PR for the additional content type list bug #45 deal with there.