issue#86 Problem with "Provide avatar" field with user_sql 4.2.1

This commit is contained in:
Marcin Łojewski
2018-12-26 12:58:15 +01:00
parent 55797f0d56
commit 8370f4b8d0
5 changed files with 5 additions and 1 deletions

View File

@@ -555,7 +555,7 @@ final class UserBackend extends ABackend implements
);
if (empty($this->properties[DB::USER_AVATAR_COLUMN])) {
return false;
return !empty($this->properties[Opt::PROVIDE_AVATAR]);
}
$user = $this->userRepository->findByUid($uid);

View File

@@ -37,6 +37,7 @@ final class Opt
const NAME_CHANGE = "opt.name_change";
const PASSWORD_CHANGE = "opt.password_change";
const PREPEND_SALT = "opt.prepend_salt";
const PROVIDE_AVATAR = "opt.provide_avatar";
const QUOTA_SYNC = "opt.quota_sync";
const REVERSE_ACTIVE = "opt.reverse_active";
const USE_CACHE = "opt.use_cache";