If a group member doesn't have the 'unsubscribe' permission (og_ui), the 'Leave Group' button should not be displayed at all.
This is remotely related to #2059197: Hide 'Leave group' buttons on groups set to 'anyone can join'.

Comments

ceepeebee’s picture

StatusFileSize
new1.68 KB
ceepeebee’s picture

Status: Active » Needs review
lsolesen’s picture

Status: Needs review » Needs work
vagrant@vlad:/var/www/site/docroot/commons/profiles/commons$ git apply commons-hide-leave-button-2138763-1.patch
commons-hide-leave-button-2138763-1.patch:16: trailing whitespace.
    // The user has an active membership. 
commons-hide-leave-button-2138763-1.patch:18: trailing whitespace.
      // The user has the permission to unsubscribe himself, 
warning: 2 lines add whitespace errors.
japerry’s picture

Status: Needs work » Fixed

I cleaned up the comments, and tested. Looks good, fixed!

  • japerry committed 7e02d45 on 7.x-3.x authored by ceepeebee
    Issue #2138763 by ceepeebee: Hide 'Leave group' buttons for members...

Status: Fixed » Closed (fixed)

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