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: Revoking lisence plan from a user, doesn't remove privileges from its account #4563

Closed Comoque1 closed 3 hours ago

Comoque1 commented 4 hours ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to acc env
  2. Register new user
  3. Assign license plan to it
  4. Revoke license plan: privileges remain image.png
query me {
  me {
    user {
      account {
        id
        authorization {
          myPrivileges
          id
        }
        agent {
          credentials {
            type
          }
        }
        subscriptions {
          expires
          name
        }
      }
      id
      nameID
      email
      profile {
        displayName
      }
      agent {
        did
        credentials {
          resourceID
          type
        }
      }
    }
    spaceMembershipsFlat {
      space {
        nameID
        level
      }
    }
  }
}

Expected behavior Privileges are removed.

Comoque1 commented 3 hours ago

Tested OK locally.