File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed
Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,9 @@ public function getName() {
3939 * @inheritdoc
4040 */
4141 public function run (IOutput $ output ) {
42- $ output ->info ('Running repair step to disable system address book ' );
43- if ($ this ->serverVersion ->getMajorVersion () !== 32 ) {
44- $ output ->info ('Skipping repair step system address book this only applies to Nextcloud 32 ' );
45- return ;
46- }
47- // If the system address book is not exposed there is nothing to do
48- if ($ this ->appConfig ->getAppValueBool ('system_addressbook_exposed ' , true ) === false ) {
49- $ output ->info ('Skipping repair step system address book is already disabled ' );
42+ // If the system address book exposure was previously set skip the repair step
43+ if ($ this ->appConfig ->hasAppKey ('system_addressbook_exposed ' ) === true ) {
44+ $ output ->info ('Skipping repair step system address book exposed was previously set ' );
5045 return ;
5146 }
5247 // We use count seen because getting a user count from the backend can be very slow
You can’t perform that action at this time.
0 commit comments