Skip to content

Commit

Permalink
chore: removes unneeded comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hlminh2000 committed Jul 18, 2019
1 parent dadd870 commit 633666a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/ego-token-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,8 @@ export const canWriteSomeProgram = (egoJwt: string) => {
* check if a given JWT has admin access to program with given id
* @param args
*/
export const isProgramAdmin = (args: { egoJwt: string; programId: string }): boolean => {
return canWriteProgram(args)

/** TODO: switch to below logic when .ADMIN scope is available */
// const authorizedProgramScopes = getReadableProgramScopes(args.egoJwt);
// return authorizedProgramScopes.some(
// ({ policy, permission }) => policy.includes(args.programId) && permission === PERMISSIONS.ADMIN,
// );
}
export const isProgramAdmin = (args: { egoJwt: string; programId: string }): boolean =>
canWriteProgram(args)

export default {
isPermission,
Expand Down

0 comments on commit 633666a

Please sign in to comment.