File tree 1 file changed +2
-1
lines changed 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +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
61
61
62
/**
62
63
* Member challenges related redux actions
@@ -158,7 +159,7 @@ export function loadChallengesByPage (
158
159
filters [ 'projectId' ] = projectId
159
160
} else if ( _ . isObject ( projectId ) && projectId . value > 0 ) {
160
161
filters [ 'projectId' ] = projectId . value
161
- } else if ( userId ) {
162
+ } else if ( ! checkAdmin ( getState ( ) . auth . token ) && userId ) {
162
163
// Note that we only add the memberId field if *no* project ID is given,
163
164
// so that the list of *all challenges shows only those that the member is on
164
165
filters [ 'memberId' ] = userId
You can’t perform that action at this time.
0 commit comments