[FIX]组织上传头像支持多种格式、项目详情返回拥有者类型

[FIX]

[FIX]
This commit is contained in:
2021-01-26 17:44:04 +08:00
parent 3f73484596
commit 0c58447afb
9 changed files with 60 additions and 8 deletions

View File

@@ -167,7 +167,7 @@ class User < Owner
where("LOWER(concat(lastname, firstname, login, mail)) LIKE ?", "%#{keywords.split(" ").join('|')}%") unless keywords.blank?
}
scope :simple_select, -> {select(:id, :login, :lastname,:firstname, :nickname, :gitea_uid)}
scope :simple_select, -> {select(:id, :login, :lastname,:firstname, :nickname, :gitea_uid, :type)}
attr_accessor :password, :password_confirmation