File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ import {
57
57
} from '../config/constants'
58
58
import { loadProject } from './projects'
59
59
import { removeChallengeFromPhaseProduct , saveChallengeAsPhaseProduct } from '../services/projects'
60
- import { checkAdmin } from '../util/tc'
60
+ import { checkAdmin , checkManager } from '../util/tc'
61
61
62
62
/**
63
63
* Member challenges related redux actions
@@ -159,7 +159,11 @@ export function loadChallengesByPage (
159
159
filters [ 'projectId' ] = projectId
160
160
} else if ( _ . isObject ( projectId ) && projectId . value > 0 ) {
161
161
filters [ 'projectId' ] = projectId . value
162
- } else if ( ! checkAdmin ( getState ( ) . auth . token ) && userId ) {
162
+ } else if (
163
+ ! checkAdmin ( getState ( ) . auth . token ) &&
164
+ ! checkManager ( getState ( ) . auth . token ) &&
165
+ userId
166
+ ) {
163
167
// Note that we only add the memberId field if *no* project ID is given,
164
168
// so that the list of *all challenges shows only those that the member is on
165
169
filters [ 'memberId' ] = userId
You can’t perform that action at this time.
0 commit comments