|
21 | 21 | use OCA\User_LDAP\User\User; |
22 | 22 | use OCA\User_LDAP\User_LDAP; |
23 | 23 | use OCA\User_LDAP\UserPluginManager; |
| 24 | +use OCP\Accounts\IAccountManager; |
24 | 25 | use OCP\HintException; |
25 | 26 | use OCP\IConfig; |
26 | 27 | use OCP\IGroupManager; |
@@ -1464,24 +1465,24 @@ public function testImplementsAction(string $configurable, string|int $value, in |
1464 | 1465 | public static function canEditPropertyProvider(): array { |
1465 | 1466 | return [ |
1466 | 1467 | // Display name is always managed by LDAP |
1467 | | - [\OCP\Accounts\IAccountManager::PROPERTY_DISPLAYNAME, '', false], |
1468 | | - [\OCP\Accounts\IAccountManager::PROPERTY_DISPLAYNAME, 'cn', false], |
| 1468 | + [IAccountManager::PROPERTY_DISPLAYNAME, '', false], |
| 1469 | + [IAccountManager::PROPERTY_DISPLAYNAME, 'cn', false], |
1469 | 1470 | // Fields with no LDAP attribute configured are user-editable |
1470 | | - [\OCP\Accounts\IAccountManager::PROPERTY_EMAIL, '', true], |
1471 | | - [\OCP\Accounts\IAccountManager::PROPERTY_PHONE, '', true], |
1472 | | - [\OCP\Accounts\IAccountManager::PROPERTY_WEBSITE, '', true], |
1473 | | - [\OCP\Accounts\IAccountManager::PROPERTY_ADDRESS, '', true], |
1474 | | - [\OCP\Accounts\IAccountManager::PROPERTY_FEDIVERSE, '', true], |
1475 | | - [\OCP\Accounts\IAccountManager::PROPERTY_ORGANISATION, '', true], |
1476 | | - [\OCP\Accounts\IAccountManager::PROPERTY_ROLE, '', true], |
1477 | | - [\OCP\Accounts\IAccountManager::PROPERTY_HEADLINE, '', true], |
1478 | | - [\OCP\Accounts\IAccountManager::PROPERTY_BIOGRAPHY, '', true], |
1479 | | - [\OCP\Accounts\IAccountManager::PROPERTY_BIRTHDATE, '', true], |
1480 | | - [\OCP\Accounts\IAccountManager::PROPERTY_PRONOUNS, '', true], |
| 1471 | + [IAccountManager::PROPERTY_EMAIL, '', true], |
| 1472 | + [IAccountManager::PROPERTY_PHONE, '', true], |
| 1473 | + [IAccountManager::PROPERTY_WEBSITE, '', true], |
| 1474 | + [IAccountManager::PROPERTY_ADDRESS, '', true], |
| 1475 | + [IAccountManager::PROPERTY_FEDIVERSE, '', true], |
| 1476 | + [IAccountManager::PROPERTY_ORGANISATION, '', true], |
| 1477 | + [IAccountManager::PROPERTY_ROLE, '', true], |
| 1478 | + [IAccountManager::PROPERTY_HEADLINE, '', true], |
| 1479 | + [IAccountManager::PROPERTY_BIOGRAPHY, '', true], |
| 1480 | + [IAccountManager::PROPERTY_BIRTHDATE, '', true], |
| 1481 | + [IAccountManager::PROPERTY_PRONOUNS, '', true], |
1481 | 1482 | // Fields with an LDAP attribute configured are managed by LDAP, not user-editable |
1482 | | - [\OCP\Accounts\IAccountManager::PROPERTY_EMAIL, 'mail', false], |
1483 | | - [\OCP\Accounts\IAccountManager::PROPERTY_PHONE, 'telephoneNumber', false], |
1484 | | - [\OCP\Accounts\IAccountManager::PROPERTY_WEBSITE, 'labeledURI', false], |
| 1483 | + [IAccountManager::PROPERTY_EMAIL, 'mail', false], |
| 1484 | + [IAccountManager::PROPERTY_PHONE, 'telephoneNumber', false], |
| 1485 | + [IAccountManager::PROPERTY_WEBSITE, 'labeledURI', false], |
1485 | 1486 | ]; |
1486 | 1487 | } |
1487 | 1488 |
|
|
0 commit comments