alkem-io / server

Core server in the Alkemio platform, offering a GraphQL api for interacting with the logical domain model.
http://alkem.io
European Union Public License 1.2
24 stars 4 forks source link

BUG: privileges on community for VC host do not show that they can leave #4184

Closed techsmyth closed 6 days ago

techsmyth commented 6 days ago

Describe the bug On the VC's membership page, the client checks for the "GRANT" privilege to determine if it is able to leave the community membership.

As the GRANT privilege is only applied in memory on the server when the mutation is triggered (as request dependent) this means the client does not show the user that they can leave.

To Reproduce Steps to reproduce the behavior:

  1. Create a VC in account 1
  2. Have that VC become a member of a Space that is in Account 2
  3. Go to VC membership settings page, no button is shown

Expected behavior The button should be shown to VC providers that they can leave the community

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Areas that will be affected as part of the fix Optional, to be added by developer if relevant