Fix CSP errors - migrate inline JS to stimulus controllers. Add a URL for applications so users can discover them
This commit is contained in:
@@ -99,7 +99,7 @@ module Admin
|
||||
def application_params
|
||||
params.require(:application).permit(
|
||||
:name, :slug, :app_type, :active, :redirect_uris, :description, :metadata,
|
||||
:domain_pattern, headers_config: {}
|
||||
:domain_pattern, :landing_url, headers_config: {}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8,5 +8,10 @@ class DashboardController < ApplicationController
|
||||
|
||||
# User must be authenticated
|
||||
@user = Current.session.user
|
||||
|
||||
# Load user's accessible applications
|
||||
@applications = Application.active.select do |app|
|
||||
app.user_allowed?(@user)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user