Comments (3)
You need to create a route sonata_user_impersonating as stated in the
documentation.
If you are a super admin, you have all permissions.
On Thu, Jan 26, 2012 at 10:30 AM, toretto <
[email protected]
wrote:
Clicking on Sonata list user action in the dashboard i get the following
exception:An exception has been thrown during the rendering of a template
("Route "sonata_user_impersonating" does not exist.") in
SonataUserBundle:Admin:Field/impersonating.html.twig at line 15.if i comment this instructions in
vendor/bundles/Sonata/UserBundle/Admin/Entity/UserAdmin.php:if ($this->isGranted('ROLE_ALLOWED_TO_SWITCH')) { $listMapper ->add('impersonating', 'string', array('template' =>
'SonataUserBundle:Admin:Field/impersonating.html.twig'))
;
}Everything works as expected; by the way, my admin user does not belong to
ROLE_ALLOWED_TO_SWITCH
Reply to this email directly or view it on GitHub:
#41
Thomas Rabaix
tel : +33 632 981 691 -- NOUVEAU --
fax : +33 173 769 004
from sonatauserbundle.
Thanks for the support, now is working properly.
from sonatauserbundle.
i have some problem
i must add route in app/config/rounting.yml?
and what i must add?this?
sonata_user_impersonating:
pattern: /
defaults: { _controller: MyBundle:Home:home }
and what i must set in "_controller" ?
when i click "impersonating user into list user of dashboard, i redirect to mylink.com/?_switch_user=Provolone_ecc...
but not work, because i have add one user without active account, but not block me, and in toolbar(bottom in app_dev) say that i'm admin and not Provolone...............................................................
my questions are two
what set in route sonata_user_impersonating: ?
and why switch_user not work? thx
PS: Sorry for my english
from sonatauserbundle.
Related Issues (20)
- Use SensitiveParameter for password and others HOT 1
- The ROLE_PREVIOUS_ADMIN role is deprecated HOT 1
- SonataUserBundle does not register UserListener with doctrine_mongodb.odm.event_subscriber HOT 1
- SonataUserBundle validator.xml does not adapt to MongoDB use HOT 6
- Admin list does not have edit button
- To delete (wrong repository)
- Incorrect display acl privileges grid, when exists two admin entity with the same name (in other groups). HOT 3
- User creation HOT 1
- The profile link in `user_block.html.twig` is always displayed, even if user is not allowed to view the profile. HOT 1
- The login page fix the width of the logo image to 64px HOT 7
- The doctrine/collections requirement prevents installing on Symfony 6.2 HOT 5
- SonataUserBundle 5.6.0 changes to `BaseUser.mongodb.xml` break XML validation HOT 5
- `BaseUser.mongodb.xml` `boolean field `enabled` triggers a deprecation warning HOT 1
- Invalid type for path "security.role_hierarchy.providers.sonata_user_bundle" - Error on fresh install. HOT 2
- BaseUser.mongodb.xml broken in SonataUserBundle 5.6.1 HOT 2
- Role checkboxes are disabled when creating/editing a user HOT 3
- Deprecation: UserListener needs to be done as listener instead of subscriber HOT 2
- Deprecation: Returning a string from "getSalt()" without implementing the LegacyPasswordAuthenticatedUserInterface HOT 5
- Extend UserAdmin problem (bug?) HOT 6
- Add the ability to disable global_search HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonatauserbundle.