-
Notifications
You must be signed in to change notification settings - Fork 2
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: #1655 restrict client selection when d admins assign roles #1701
feat: #1655 restrict client selection when d admins assign roles #1701
Conversation
…dmins-assign-roles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!!
frontend/src/utils/AuthUtils.ts
Outdated
@@ -2,6 +2,7 @@ import { | |||
AdminRoleAuthGroup, | |||
type AdminUserAccessResponse, | |||
type FamAuthGrantDto, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
man we need a linter installed
fieldId: string; | ||
}>(); | ||
|
||
const { validate: validateForestClients } = useField(props.fieldId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not really sure how this validate
works...
Just curious, how does useField(props.fieldId)
know what to validate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quality Gate passed for 'nr-forests-access-management_admin'Issues Measures |
closes: #1655
If the logged in user is a d-admin only, then show them only the FC they have permissions to add
Just one FC:
More than one:
Error state:
The "request access to it" feature is not implemented as we do not have enough information at the moment.