mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 15:41:27 +00:00
Fix rebase issue with deleted files
This commit is contained in:
-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