message: Return only allowed openshifts (for non-admin)
diff: @@ -62,15 +62,24 @@ const deleteOpenshift = ({ sqlClient }) => async (cred, input) => {
  };
  const getAllOpenshifts = ({ sqlClient }) => async (cred, args) => {
  - if (cred.role !== 'admin') {
  - throw new Error('Unauthorized');
  - }
  + const { customers, projects } = cred.permissions;
  +
  + const prep = prepare(
  + sqlClient,
  + `SELECT DISTINCT
  + o.*
  + FROM project p
  + JOIN openshift o ON o.id = p.openshift
  + ${ifNotAdmin(
  + cred.role,
  + `AND ${inClauseOr([['p.customer', customers], ['p.id', projects]])}`,
  + )}
  + `,
  + );
  - // const { createdAfter } = args;
  - const prep = prepare(sqlClient, 'SELECT * FROM openshift');
  const rows = await query(sqlClient, prep(args));
  - return rows.map(attrFilter.openshift(cred));
  + return R.map(attrFilter.openshift(cred), rows);
  };
  const getOpenshiftByProjectId = ({ sqlClient }) => async (cred, pid) => {
  