mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 06:34:57 +00:00
feat: patchy patchy patchy
This commit is contained in:
@@ -208,7 +208,7 @@ export const orgServiceFactory = ({
|
||||
userId: string,
|
||||
orgId: string,
|
||||
actorAuthMethod: ActorAuthMethod,
|
||||
actorOrgId: string | undefined
|
||||
actorOrgId: string
|
||||
) => {
|
||||
const { permission } = await permissionService.getOrgPermission({
|
||||
actor: ActorType.USER,
|
||||
@@ -701,7 +701,7 @@ export const orgServiceFactory = ({
|
||||
ipAddress: string;
|
||||
orgId: string;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
}) => {
|
||||
const { hasRole } = await permissionService.getOrgPermission({
|
||||
actor: ActorType.USER,
|
||||
@@ -1150,7 +1150,7 @@ export const orgServiceFactory = ({
|
||||
userId: string,
|
||||
orgId: string,
|
||||
actorAuthMethod: ActorAuthMethod,
|
||||
actorOrgId: string | undefined
|
||||
actorOrgId: string
|
||||
) => {
|
||||
const { permission } = await permissionService.getOrgPermission({
|
||||
actor: ActorType.USER,
|
||||
@@ -1170,7 +1170,7 @@ export const orgServiceFactory = ({
|
||||
orgId: string,
|
||||
email: string,
|
||||
actorAuthMethod: ActorAuthMethod,
|
||||
actorOrgId: string | undefined
|
||||
actorOrgId: string
|
||||
) => {
|
||||
const { permission } = await permissionService.getOrgPermission({
|
||||
actor: ActorType.USER,
|
||||
@@ -1198,7 +1198,7 @@ export const orgServiceFactory = ({
|
||||
orgId: string,
|
||||
id: string,
|
||||
actorAuthMethod: ActorAuthMethod,
|
||||
actorOrgId: string | undefined
|
||||
actorOrgId: string
|
||||
) => {
|
||||
const { permission } = await permissionService.getOrgPermission({
|
||||
actor: ActorType.USER,
|
||||
|
||||
@@ -8,7 +8,7 @@ export type TUpdateOrgMembershipDTO = {
|
||||
membershipId: string;
|
||||
role?: string;
|
||||
isActive?: boolean;
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
metadata?: { key: string; value: string }[];
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
};
|
||||
@@ -21,7 +21,7 @@ export type TDeleteOrgMembershipDTO = {
|
||||
userId: string;
|
||||
orgId: string;
|
||||
membershipId: string;
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
};
|
||||
|
||||
@@ -29,7 +29,7 @@ export type TDeleteOrgMembershipsDTO = {
|
||||
userId: string;
|
||||
orgId: string;
|
||||
membershipIds: string[];
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@ export type TVerifyUserToOrgDTO = {
|
||||
|
||||
export type TFindOrgMembersByEmailDTO = {
|
||||
actor: ActorType;
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
actorId: string;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
orgId: string;
|
||||
@@ -64,7 +64,7 @@ export type TFindOrgMembersByEmailDTO = {
|
||||
export type TFindAllWorkspacesDTO = {
|
||||
actor: ActorType;
|
||||
actorId: string;
|
||||
actorOrgId: string | undefined;
|
||||
actorOrgId: string;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
orgId: string;
|
||||
};
|
||||
|
||||
@@ -1830,7 +1830,8 @@ export const projectServiceFactory = ({
|
||||
actorId: permission.id,
|
||||
orgId: permission.orgId,
|
||||
actorAuthMethod: permission.authMethod,
|
||||
scope: OrganizationActionScope.Any
|
||||
scope: OrganizationActionScope.Any,
|
||||
actorOrgId: permission.orgId
|
||||
});
|
||||
|
||||
return projectDAL.searchProjects({
|
||||
@@ -1854,6 +1855,7 @@ export const projectServiceFactory = ({
|
||||
actorId: permission.id,
|
||||
orgId: permission.orgId,
|
||||
actorAuthMethod: permission.authMethod,
|
||||
actorOrgId: permission.orgId,
|
||||
scope: OrganizationActionScope.Any
|
||||
});
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ export type TCreateProjectDTO = {
|
||||
actor: ActorType;
|
||||
actorAuthMethod: ActorAuthMethod;
|
||||
actorId: string;
|
||||
actorOrgId?: string;
|
||||
actorOrgId: string;
|
||||
projectName: string;
|
||||
projectDescription?: string;
|
||||
slug?: string;
|
||||
|
||||
Reference in New Issue
Block a user