Skip to content

Commit dcde73e

Browse files
committed
fix: typo
1 parent 1959ede commit dcde73e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Module.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ public function upgrade($oldVersion, $newVersion, ServiceLocatorInterface $servi
180180
$conn = $serviceLocator->get('Omeka\Connection');
181181
$conn->exec('ALTER TABLE team_user MODIFY id INT NOT NULL AUTO_INCREMENT');
182182
}
183-
if (version_compare($oldVersion,'4.0.1', '<')) {
183+
if (version_compare($oldVersion,'4.1.0', '<')) {
184184
//add global admin to the list of settings for bypass team users
185-
$globalSettings = $this->getServiceLocator()->get('Omeka\Settings');
186-
$globalSettings->set('teams_filter_bypass_roles', 'global_adin');
185+
$globalSettings = $serviceLocator->get('Omeka\Settings');
186+
$globalSettings->set('teams_filter_bypass_roles', ["global_admin"]);
187187
}
188188
}
189189

0 commit comments

Comments
 (0)