Page 1 of 1

login as user from admin panel

Posted: 13 Dec 2017, 10:04
by antonlinderer
Is there a way to login as another user from admin panel once you are logged in as administrator?

Re: login as user from admin panel

Posted: 13 Dec 2017, 23:15
by aimeos
No, you can't impersonate as another user. The Laravel users table and the Laravel Gate permission system isn't designed for that.

Re: login as user from admin panel

Posted: 14 Dec 2017, 07:50
by antonlinderer
A popular boilerplate for Laravel has this feature of "Login As" User: http://laravel-boilerplate.com/5.5/docu ... ss-control

Re: login as user from admin panel

Posted: 15 Dec 2017, 08:40
by aimeos
It uses an alternative authorization package for permission handling. You can use that as well in your own application because it's based on the Laravel standard auth system. You only have to define an alternative gate function instead of using the Aimeos one: https://github.com/aimeos/aimeos-laravel#admin

Re: login as user from admin panel

Posted: 11 Jan 2019, 10:54
by hihaider196
hi,
I want to remove signIn from admin portal and restrict changes in admin portal for any user(once product in inserted then you can't do anything).I need it as soon as possible. Help me
Thankyou

Re: login as user from admin panel

Posted: 11 Jan 2019, 11:04
by aimeos
If you want to limit the panels a user group is able to see, you can overwrite the configuration from the admin/jqadm/resource.php file: https://github.com/aimeos/ai-admin-jqad ... source.php

Add the settings to your ./config/shop.php in the "admin" section like:

Code: Select all

'admin => [
    'jqadm' => [
        'resource' => [
            'order' => [
                'groups' => ['super', 'admin']
            ]
        ]
    ]
]
This example removes the order panel for all users with editor privileges.

Re: login as user from admin panel

Posted: 11 Jan 2019, 13:50
by hihaider196
Hi,
Can you please tell me the name of table, storing users information and also for admin and also how can i replace my phone number with email.
Thankyou

Re: login as user from admin panel

Posted: 14 Jan 2019, 13:19
by aimeos
All customer and administrator accounts are stored in the Laravel "users" table. Aimeos add a few more tables for delivery addresses (users_address), references to other domains (users_list) and arbitrary properties (users_property).

Re: login as user from admin panel

Posted: 09 Apr 2019, 19:14
by aimeos
You can manage the data of the users table in the Aimeos admin interface (customer panel) yourself