Principals can be principal/user/<name> or principal/<name> from legacy installs

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-01-14 11:21:41 +01:00 committed by Backportbot
parent cf5a717e65
commit df2132c0b1
1 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,6 @@ class RemoveClassifiedEventActivity implements IRepairStep {
protected function getPrincipal(string $principalUri): string {
$uri = explode('/', $principalUri);
return $uri[2];
return array_pop($uri);
}
}