<commit_before># User Impersonate

Allow staff users to impersonate your normal users: see what they see, only do what they can do.

## Example usage

<img src="https://img.skitch.com/20120916-exjmwkufj16kijjdsaf2dpn6tk.png" alt="navigate to impersonation section somehow" />

<img src="https://img.skitch.com/20120916-b1exb1penw4cdt41c45gxrphbr.png" alt="Impersonate a user" />

<img src="https://img.skitch.com/20120916-xq5q5gfyfm14ibkqf9e36hb3yp.png" alt="Impersonating a user" />

## Installation

Add to your layout the following HAML

``` haml
- if staff_user
  = render 'user_impersonate/header'
```<commit_msg>descriptions for the readme images<commit_after># User Impersonate

Allow staff users to impersonate your normal users: see what they see, only do what they can do.

## Example usage

When logged in as a Staff user, navigate to the `/impersonate` section that is mounted with this Rails engine:

<img src="https://img.skitch.com/20120916-exjmwkufj16kijjdsaf2dpn6tk.png" alt="navigate to impersonation section somehow" />

Search for a user and impersonate them:

<img src="https://img.skitch.com/20120916-b1exb1penw4cdt41c45gxrphbr.png" alt="Impersonate a user" />

When you are impersonating a user you see what they see, with a header section above:

<img src="https://img.skitch.com/20120916-xq5q5gfyfm14ibkqf9e36hb3yp.png" alt="Impersonating a user" />

## Installation

Add to your layout the following HAML

``` haml
- if staff_user
  = render 'user_impersonate/header'
```
{'fraction_non_alphanumeric': 0.10287241148964596, 'fraction_numerical': 0.05744822979291917, 'mean_word_length': 5.064777327935222, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1707859', 'n_tokens_mistral': 588, 'n_tokens_neox': 534, 'n_words': 152}