Skip to content

Commit

Permalink
fix: Don't reuse another team members integrated task (#9600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch authored Apr 4, 2024
1 parent 415d03b commit 9794033
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/client/utils/AtlassianManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default abstract class AtlassianManager {
'write:jira-work',
'offline_access'
]
static MANAGE_SCOPE: JiraPermissionScope[] = [...AtlassianManager.SCOPE, 'manage:jira-project']
accessToken: string
protected headers = {
Authorization: '',
Expand Down
1 change: 1 addition & 0 deletions packages/client/utils/JiraServerClientManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {MenuMutationProps} from '../hooks/useMutationProps'
import AddTeamMemberIntegrationAuthMutation from '../mutations/AddTeamMemberIntegrationAuthMutation'
import CreateOAuth1AuthorizeUrlMutation from '../mutations/CreateOAuth1AuthorizeUrlMutation'
import getOAuthPopupFeatures from './getOAuthPopupFeatures'

class JiraServerClientManager {
static SCOPES = 'read_api'
static openOAuth(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const importTasksForPoker = async (
const existingTasks = await r
.table('Task')
.getAll(r.args(integrationHashes), {index: 'integrationHash'})
.filter({teamId})
.filter({teamId, userId})
.run()
const integrationHashToTaskId = {} as Record<string, string>
additiveUpdates.map((update) => {
Expand Down

0 comments on commit 9794033

Please sign in to comment.