diff --git a/server/src/schema/cloneDetails.js b/server/src/schema/cloneDetails.js index 56d2d5f93..ec4ee89e2 100644 --- a/server/src/schema/cloneDetails.js +++ b/server/src/schema/cloneDetails.js @@ -5,7 +5,8 @@ import { AutorizationError } from '../errors' const cloneDetails = async(authId, team, clone) => { logger.debug('Retrieving clone details.') - if(!isAuthorized(team, authId)){ + // TODO Pending improvement by authorization module + if(!(authId === process.env.AACLOUD_ID || isAuthorized(team, authId))){ logger.debug('User %s is not authorized to manage team %s.', authId, team.slug ) throw new AutorizationError() }