mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-10 20:28:54 +00:00
22 lines
684 B
TypeScript
22 lines
684 B
TypeScript
import { OrgPermissionSubjects } from "@app/context";
|
|
import { OrgPermissionSecretShareAction } from "@app/context/OrgPermissionContext/types";
|
|
import { withPermission } from "@app/hoc";
|
|
|
|
import { OrgSecretShareLimitSection } from "./OrgSecretShareLimitSection";
|
|
import { SecretSharingAllowShareToAnyone } from "./SecretSharingAllowShareToAnyone";
|
|
|
|
export const SecretSharingSettingsTab = withPermission(
|
|
() => {
|
|
return (
|
|
<div className="w-full">
|
|
<SecretSharingAllowShareToAnyone />
|
|
<OrgSecretShareLimitSection />
|
|
</div>
|
|
);
|
|
},
|
|
{
|
|
action: OrgPermissionSecretShareAction.ManageSettings,
|
|
subject: OrgPermissionSubjects.SecretShare
|
|
}
|
|
);
|