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 dcd1dbb609
commit 3f2d77faf2
1 changed files with 1 additions and 1 deletions

View File

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