sfGuardUserSwitcherPlugin - 1.0.1

Allowed to switch the context to another user

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

The sfGuardUserSwitcherPlugin is a symfony plugin that provides a way to switch the user without login data.

Installation

  • Install the plugin (via a Subversion checkout)

    svn co http//svn.symfony-project.com/plugins/sfGuardUserSwitcherPlugin/trunk plugins/sfGuardUserSwitcherPlugin
    
  • Install the plugin (via a package)

    symfony plugin:install sfGuardUserSwitcherPlugin
    
  • Enable one or more modules in your settings.yml (optional). For your frontend application: sfGuardUserSwitcherPlugin

    all:
      .settings:
        enabled_modules:      [sfGuardUserSwitcherPlugin](default,)
    
  • Add component to your layout

    include_component('sfGuardUserSwitcher', 'index');
  • Clear you cache

    symfony cc
    

Permission

By default only super admins are allowed to switch the user you change this by override the function hasPermissionToSwitch in the component.