Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar Menu Role Assigment #25

Open
cubluwt opened this issue Aug 2, 2020 · 0 comments
Open

Sidebar Menu Role Assigment #25

cubluwt opened this issue Aug 2, 2020 · 0 comments

Comments

@cubluwt
Copy link

cubluwt commented Aug 2, 2020

Hi,
I've tried setting the role permission on the sidebar menu in /config folder, but nothing happened.

'sidebar' => [
        [   'role' => 'admin',
            'title' => 'Dashboard',
            'link' => '#',
            'active' => 'admin/dashboard*',
            'icon' => 'icon-fa icon-fa-dashboard',
            'children' => [
                [
                    'title' => 'Basic',
                    'link' => '/admin/dashboard/basic',
                    'active' => 'admin/dashboard/basic',
                ],
                [
                    'title' => 'Ecommerce',
                    'link' => '/admin/dashboard/ecommerce',
                    'active' => 'admin/dashboard/ecommerce',
                ],
                [
                    'title' => 'Finance',
                    'link' => '/admin/dashboard/finance',
                    'active' => 'admin/dashboard/finance',
                ]
            ]
        ],

Is that the correct thing to do?
I was deleting the [Dashboard] button from the "user" index page and changed it directly to admin page. The method above by adding "role => admin" doesn't worked. Any ideas?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant