mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 15:26:20 +00:00
Fix rebase issue with deleted files
This commit is contained in:
@@ -110,7 +110,7 @@ export const useUpdateOrg = () => {
|
||||
defaultMembershipRoleSlug,
|
||||
enforceMfa,
|
||||
selectedMfaMethod,
|
||||
secretShareSendToAnyone
|
||||
allowSecretSharingOutsideOrganization
|
||||
}) => {
|
||||
return apiRequest.patch(`/api/v1/organization/${orgId}`, {
|
||||
name,
|
||||
@@ -120,7 +120,7 @@ export const useUpdateOrg = () => {
|
||||
defaultMembershipRoleSlug,
|
||||
enforceMfa,
|
||||
selectedMfaMethod,
|
||||
secretShareSendToAnyone
|
||||
allowSecretSharingOutsideOrganization
|
||||
});
|
||||
},
|
||||
onSuccess: () => {
|
||||
|
||||
@@ -15,7 +15,7 @@ export type Organization = {
|
||||
defaultMembershipRole: string;
|
||||
enforceMfa: boolean;
|
||||
selectedMfaMethod?: MfaMethod;
|
||||
secretShareSendToAnyone?: boolean;
|
||||
allowSecretSharingOutsideOrganization?: boolean;
|
||||
};
|
||||
|
||||
export type UpdateOrgDTO = {
|
||||
@@ -27,7 +27,7 @@ export type UpdateOrgDTO = {
|
||||
defaultMembershipRoleSlug?: string;
|
||||
enforceMfa?: boolean;
|
||||
selectedMfaMethod?: MfaMethod;
|
||||
secretShareSendToAnyone?: boolean;
|
||||
allowSecretSharingOutsideOrganization?: boolean;
|
||||
};
|
||||
|
||||
export type BillingDetails = {
|
||||
|
||||
-2
@@ -101,8 +101,6 @@ export const RolePermissionsSection = ({ roleId }: Props) => {
|
||||
|
||||
const onSubmit = async (el: TFormSchema) => {
|
||||
try {
|
||||
console.log(el.permissions);
|
||||
console.log(formRolePermission2API(el.permissions));
|
||||
await updateRole({
|
||||
orgId,
|
||||
id: roleId,
|
||||
|
||||
+2
-2
@@ -14,7 +14,7 @@ export const SecretSharingAllowShareToAnyone = () => {
|
||||
|
||||
await mutateAsync({
|
||||
orgId: currentOrg.id,
|
||||
secretShareSendToAnyone: value
|
||||
allowSecretSharingOutsideOrganization: value
|
||||
});
|
||||
|
||||
createNotification({
|
||||
@@ -42,7 +42,7 @@ export const SecretSharingAllowShareToAnyone = () => {
|
||||
<Switch
|
||||
id="enable-secret-sharing-outside-org"
|
||||
onCheckedChange={(value) => handleSecretSharingToggle(value)}
|
||||
isChecked={currentOrg?.secretShareSendToAnyone ?? false}
|
||||
isChecked={currentOrg?.allowSecretSharingOutsideOrganization ?? false}
|
||||
isDisabled={!isAllowed}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -232,7 +232,7 @@ export const ShareSecretForm = ({ isPublic, value }: Props) => {
|
||||
onValueChange={(e) => onChange(e)}
|
||||
className="w-full"
|
||||
>
|
||||
{currentOrg?.secretShareSendToAnyone && (
|
||||
{currentOrg?.allowSecretSharingOutsideOrganization && (
|
||||
<SelectItem value={SecretSharingAccessType.Anyone}>Anyone</SelectItem>
|
||||
)}
|
||||
<SelectItem value={SecretSharingAccessType.Organization}>
|
||||
|
||||
Reference in New Issue
Block a user