add account access

This commit is contained in:
Pete Matsyburka
2025-05-18 12:13:23 +03:00
parent 82f3ff4824
commit 01232aed5a
8 changed files with 64 additions and 5 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ class UsersController < ApplicationController
@users.active.where.not(role: 'integration')
end
@pagy, @users = pagy(@users.where(account: current_account).order(id: :desc))
@pagy, @users = pagy(@users.preload(account: :account_accesses).where(account: current_account).order(id: :desc))
end
def new; end