Admin bar for all admin users
Permalink
Hi,
I created another admin user to be able to edit and add pages.
Problem:
When I login with the default admin account everything works fine, the admin bar is there in place.
When I login with another admin account, I can access the dashboard, BUT I can't see the admin bar from the top of all pages.
If I logout from that new account and login with the old one the bar appears.
I realize that it's a problem about permissions and I can't figure out what should I do to have the top admin bar on all admin accounts.
I activated advanced permisions and what should I do next?
thank you!
I created another admin user to be able to edit and add pages.
Problem:
When I login with the default admin account everything works fine, the admin bar is there in place.
When I login with another admin account, I can access the dashboard, BUT I can't see the admin bar from the top of all pages.
If I logout from that new account and login with the old one the bar appears.
I realize that it's a problem about permissions and I can't figure out what should I do to have the top admin bar on all admin accounts.
I activated advanced permisions and what should I do next?
thank you!
Thank you!
True that I wrote the theme from scratch and I miss something.
I don't know what am I missing. I will have a closer look.
On default concrete5 themes this issue doesn't exists, only on my theme.
Yep, the second admin has full rights, but the admin bar is not on top of pages when navigating on website.
This is my second website in concrete5, same problem with the first one.
Admin bar only on default admin, the second admin user I created doesn't has top admin bar.
With the second admin account I can navigate in dashboard and everything, but when I'm in frontend with it, top admin bar not there. I log in with de default admin and the top admin bar Appears by magic!
:(
True that I wrote the theme from scratch and I miss something.
I don't know what am I missing. I will have a closer look.
On default concrete5 themes this issue doesn't exists, only on my theme.
Yep, the second admin has full rights, but the admin bar is not on top of pages when navigating on website.
This is my second website in concrete5, same problem with the first one.
Admin bar only on default admin, the second admin user I created doesn't has top admin bar.
With the second admin account I can navigate in dashboard and everything, but when I'm in frontend with it, top admin bar not there. I log in with de default admin and the top admin bar Appears by magic!
:(
Found it!
Thank you!
The problem was with the theme.
I included header_required only if i'm logged as super user.
So, in the template, I replaced:
if ($u->isSuperUser())
WITH:
if($u->isSuperUser() || $u->inGroup(Group::getByName('Administrators')))
Thank you!
The problem was with the theme.
I included header_required only if i'm logged as super user.
So, in the template, I replaced:
if ($u->isSuperUser())
WITH:
if($u->isSuperUser() || $u->inGroup(Group::getByName('Administrators')))
There is user group called "administrators" and unless you modified default settings, anybody you put in that group should have full admin rights