public function preRequest(\SS_HTTPRequest $request, \Session $session, \DataModel $model)
    {
        if (strtolower($request->httpMethod()) === 'post' && (
            $request->getURL() === 'Security/LoginForm' ||
            $request->getURL() === 'Security/LostPasswordForm' ||
            $request->getURL() === 'Security/ChangePasswordForm' 
            )) {
            Restrictable::set_enabled(false);
        }
    }
public function preRequest(\SS_HTTPRequest $request, \Session $session, \DataModel $model)
    {
        if (strtolower($request->httpMethod()) === 'post' && (
            $request->getURL() === 'Security/LoginForm' ||
            $request->getURL() === 'Security/LostPasswordForm' ||
            $request->getURL() === 'Security/ChangePasswordForm' 
            )) {
            Restrictable::set_enabled(false);
        }
    }
public function preRequest ( \ SS_HTTPRequest $ request , \ Session $ session , \ DataModel $ model ) { if ( strtolower ( $ request -> httpMethod ( ) ) === 'post' && ( $ request -> getURL ( ) === 'Security/LoginForm' || $ request -> getURL ( ) === 'Security/LostPasswordForm' || $ request -> getURL ( ) === 'Security/ChangePasswordForm' ) ) { Restrictable :: set_enabled ( false ) ; } }
Check if we're in a login request. If so, we're going to explicitly disable
restrictedobjects permission checks. This is poor, but dictated by the core
member login code performing writes prior to having a user context.

@param \SS_HTTPRequest $request
@param \Session $session
@param \DataModel $model
Check if we re in a login request . If so we re going to explicitly disable restrictedobjects permission checks . This is poor but dictated by the core member login code performing writes prior to having a user context .