Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / scan_container (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled
Build and publish image / build (push) Has been cancelled
The access check form POSTed and re-rendered :new with a 200 HTML
response, which Turbo rejects ("Form responses must redirect to
another location"), so the result panel never appeared. Since the
check is a read-only query, switch to a GET form and fold the lookup
into the new action. Results are now bookmarkable via the URL.
Bump version to 0.16.2.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
511 B
Ruby
21 lines
511 B
Ruby
module Admin
|
|
class AccessChecksController < BaseController
|
|
def new
|
|
load_options
|
|
@user = User.find_by(id: params[:user_id])
|
|
@application = Application.find_by(id: params[:application_id])
|
|
return unless @user && @application
|
|
|
|
@allowed = @application.user_allowed?(@user)
|
|
@via = @user.groups & @application.allowed_groups
|
|
end
|
|
|
|
private
|
|
|
|
def load_options
|
|
@users = User.order(:email_address)
|
|
@applications = Application.order(:name)
|
|
end
|
|
end
|
|
end
|