Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Check if CSRF protected is enabled, either on the parent controller or default settings.
- if($controller->hasMethod('securityTokenEnabled')) {
- $this->security = $controller->securityTokenEnabled();
- } else {
- $this->security = self::$default_security;
- }
Add Comment
Please, Sign In to add comment