return token rank in i/shared-access/list
This commit is contained in:
parent
945260d175
commit
e51bee48ec
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,11 @@ export const meta = {
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
rank: {
|
||||||
|
type: 'string',
|
||||||
|
enum: ['admin', 'mod', 'user'],
|
||||||
|
optional: false, nullable: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
|
|
@ -81,6 +86,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
id: token.id,
|
id: token.id,
|
||||||
permissions: token.permission,
|
permissions: token.permission,
|
||||||
user: packedUserMap.get(token.userId),
|
user: packedUserMap.get(token.userId),
|
||||||
|
rank: token.rank,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue