Sha256: 65e0e8600d5b773028e6af7920d6fe1eb812015c51079595a30ca34ae7e0bf00

Contents?: true

Size: 629 Bytes

Versions: 22

Compression:

Stored size: 629 Bytes

Contents

Maquerading is the concept of one user acting as though he/she was
another user. In Cantango we enhance this to also be possible to
masquerade account login if needed.

In order to masquerade, you simply do:

```ruby
user.masquerade_as other_user
```

If you are using the 'friendly_id' gem, you can even do:

```ruby
admin_user.masquerade_as 'stanislaw'
```

This requires that you have configured your user model with a friendly id, in this case `username`.

## Masquerading accounts

Account masquerading allows a user to act as if he is logged into
another account.

```ruby
admin_account.masquerade_as normal_account
```



Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cantango-0.9.4.7 wiki/users/masquerading.markdown
cantango-0.9.4.6 wiki/users/masquerading.markdown
cantango-0.9.4.5 wiki/users/masquerading.markdown
cantango-0.9.4.3 wiki/users/masquerading.markdown
cantango-0.9.4.2 wiki/users/masquerading.markdown
cantango-0.9.4.1 wiki/users/masquerading.markdown
cantango-0.9.4 wiki/users/masquerading.markdown
cantango-0.9.3.2 wiki/users/masquerading.markdown
cantango-0.8.9.5 wiki/users/masquerading.markdown
cantango-0.8.9.4 wiki/users/masquerading.markdown
cantango-0.8.9.3 wiki/users/masquerading.markdown
cantango-0.8.9.2 wiki/users/masquerading.markdown
cantango-0.8.9.1 wiki/users/masquerading.markdown
cantango-0.8.9 wiki/users/masquerading.markdown
cantango-0.8.8.1 wiki/users/masquerading.markdown
cantango-0.8.8 wiki/users/masquerading.markdown
cantango-0.8.7 wiki/users/masquerading.markdown
cantango-0.8.6.2 wiki/users/masquerading.markdown
cantango-0.8.6.1 wiki/users/masquerading.markdown
cantango-0.8.6 wiki/users/masquerading.markdown