Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/acl #167

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Feat/acl #167

wants to merge 2 commits into from

Conversation

giurigaud
Copy link
Contributor

What problem is this solving?

Currently, when accessing organization management, any user can make any change. The goal is to implement a minimum control of viewing/changing.
VTEX already has two features in the license manager that are not used, called:
Buyer Organization View
Buyer Organization Edit
These two features could be used to facilitate the requested changes

How should this be manually tested?

Screenshots or example usage:

Related to: vtex-apps/b2b-organizations-graphql#181

Copy link

vtex-io-ci-cd bot commented Oct 15, 2024

Hi! I'm VTEX IO CI/CD Bot and I'll be helping you to publish your app! 🤖

Please select which version do you want to release:

  • Patch (backwards-compatible bug fixes)

  • Minor (backwards-compatible functionality)

  • Major (incompatible API changes)

And then you just need to merge your PR when you are ready! There is no need to create a release commit/tag.

  • No thanks, I would rather do it manually 😞

@vtex-io-docs-bot
Copy link

Beep boop 🤖

I noticed you didn't make any changes at the docs/ folder

  • There's nothing new to document 🤔
  • I'll do it later 😞

In order to keep track, I'll create an issue if you decide now is not a good time

  • I just updated 🎉🎉

@enzomerca enzomerca requested a review from a team October 22, 2024 16:24
@Rudge
Copy link
Contributor

Rudge commented Jan 8, 2025

@giurigaud You need to resolve the conflicts and set the release in the PR.

@@ -44,7 +45,8 @@ export class ValidateAdminUserAccess extends SchemaDirectiveVisitor {
const { hasAdminToken, hasValidAdminToken } = await validateAdminToken(
context,
adminUserAuthToken as string,
metricFields
metricFields,
orgPermission
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test what happens when the value is different from 'buyer_organization_edit' | 'buyer_organization_view'?

) => {
const productCode = B2B_LM_PRODUCT_CODE // resource name on lincense manager = B2B

const checkOrgPermission = await this.get<boolean>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is the response time of this request? It is important to know what the impact of this request is.

What happens if the request fails due to a timeout or response error? The expected is to block all requests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants