Replace hardcoded domains with primary domain setting

This commit is contained in:
Râu Cao
2023-03-18 13:43:23 +07:00
parent 34e4cec503
commit 589e46bc63
8 changed files with 9 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ class Admin::UsersController < Admin::BaseController
def index
ldap = LdapService.new
@ou = params[:ou] || "kosmos.org"
@ou = params[:ou] || Setting.primary_domain
@orgs = ldap.fetch_organizations
@pagy, @users = pagy(User.where(ou: @ou).order(cn: :asc))