Hi,

I'm trying to prevent authenticated users to create new groups. The idea is that only the site owner can create groups and user can join those.
I disabled the permission for authenticated users to create groups, witch works, BUT the dropdown menu still shows the create a new group link.

And more general how should one go about in modifying this dropdown menu?

Thanks for the great distribution!

Comments

Selfirian created an issue. See original summary.

ronaldtebrake’s picture

Status: Active » Needs review

Hi Selfirian,

It's all part of /profiles/contrib/social/modules/social_features/social_user/src/Plugin/Block/AccountHeaderBlock.php

Which you can create your own instance of :)

But in your specific case we have a PR opened here:
https://patch-diff.githubusercontent.com/raw/goalgorilla/open_social/pul...

This should solve it by checking if the user has access to actually see this.

jaapjan’s picture

Status: Needs review » Fixed

I've merged this pull request: https://github.com/goalgorilla/open_social/pull/367 so it will most likely land in the next release!

  • 4053719 committed on 8.x-1.x
    Issue #2820234 by spuky, jaapjan: permission check in create links...
  • jaapjan committed e7951c5 on 8.x-1.x
    Issue #2820234 by spuky, jaapjan: How to disable create new group
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.