mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-13 13:08:41 +00:00
NORY-59: fix permission in delete-identity server action
This commit is contained in:
parent
5494233e59
commit
3151103195
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ export async function unblockIdentity(id: string) {
|
|||
export async function deleteIdentity(id: string) {
|
||||
|
||||
const session = await requireSession();
|
||||
const allowed = await checkPermission(permission.user.credential, relation.delete, session.identity!.id);
|
||||
const allowed = await checkPermission(permission.user.it, relation.delete, session.identity!.id);
|
||||
if (!allowed) {
|
||||
throw Error('Unauthorised');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue