1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-30 18:49:43 +02:00

latest build assets

This commit is contained in:
Harvey Kandola 2017-08-04 13:17:09 +01:00
parent 476403bf46
commit 4046accc23
5 changed files with 27 additions and 25 deletions

View file

@ -283,7 +283,7 @@ func (s Scope) ForgotUserPassword(ctx domain.RequestContext, email, token string
}
// CountActiveUsers returns the number of active users in the system.
func (s Scope) CountActiveUsers(ctx domain.RequestContext) (c int) {
func (s Scope) CountActiveUsers() (c int) {
row := s.Runtime.Db.QueryRow("SELECT count(*) FROM user u WHERE u.refid IN (SELECT userid FROM account WHERE active=1)")
err := row.Scan(&c)