Fixing the way rights are sent to the admin (now sending organization/world/room)

This commit is contained in:
David Négrier 2020-10-14 10:37:00 +02:00
parent 9113ef4ff6
commit ce93e5bbaa
3 changed files with 17 additions and 7 deletions

View file

@ -66,7 +66,7 @@ export class Room {
this.instance = match[1];
return this.instance;
} else {
const match = /_\/([^/]+)\/([^/]+)\/.+/.exec(this.id);
const match = /@\/([^/]+)\/([^/]+)\/.+/.exec(this.id);
if (!match) throw new Error('Could not extract instance from "'+this.id+'"');
this.instance = match[1]+'/'+match[2];
return this.instance;