Constructor
new SecurityDebugController()
Methods
hide()
Hide the security debug panel
initialize()
Initialize controller
show()
Show the security debug panel
toggle()
Toggle the visibility of the security debug panel
Security Debug Controller
Handles the display and interaction of security debug information in debug mode. Provides toggle functionality to show/hide detailed security information including user policies and authorization check logs.
Features:
HTML Structure:
<div data-controller="security-debug">
<button data-action="click->security-debug#toggle" data-security-debug-target="toggleBtn">
Show Security Info
</button>
<div data-security-debug-target="panel" style="display: none;">
<!-- Security info content -->
</div>
</div>
Hide the security debug panel
Initialize controller
Show the security debug panel
Toggle the visibility of the security debug panel